Skip to Content
0
Former Member
Mar 25, 2010 at 05:04 PM

Filename with space problem

35 Views

Does anyone know why this code is giving me to save the file with the wrong filename? It converts spaces to + signs.

Currently it gives the filename: "test+filename.abc"

The variable resourceName is: "test filename.abc" (<-- this is required filename)

IWDResource resource = WDResourceFactory.createResource(baos.toByteArray(),"test filename.abc",WDWebResourceType.UNKNOWN);
String url = resource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
String resourceName = resource.getResourceName();
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url,"download").show();

Edited by: Tom Franssen on Mar 25, 2010 6:04 PM