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

Filename with space problem


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: ""

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

IWDResource resource = WDResourceFactory.createResource(baos.toByteArray(),"test",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