cancel
Showing results for 
Search instead for 
Did you mean: 

File Download

Former Member
0 Kudos

i have a file store in


pc1\d$\usr\sap\N01\DVEBMGS01\j2ee\cluster\server0\motor.xls

how do i trigger the download to this location....

i cannot done with IWDWebResource()

http://pc1:50100/webdynpro/dispatcher/local/WD_ExcelExport/TableApp/~wd_key209_1171015378274/motor.x...

or either

http://pc1:50100/webdynpro/dispatcher/local/WD_ExcelExport/motor.xls

from the sample code given...it is only applicable to byte to use the IWDWebResource


b =  xml_file.toString().getBytes("UTF-8");					IWDCachedWebResource xlfile = WDWebResource.getWebResource(b,WDWebResourceType.XLS);					//IWDCachedWebResource x=WDWebResource.getWebResource();
				  
	xlfile.setResourceName(wdTableNode.getNodeInfo().getName()+" List");
					linktoFile = xlfile.getURL();

if i have a file awaiting for download..what can i do..which path should i put the file

the default path is


pc1\d$\usr\sap\N01\DVEBMGS01\j2ee\cluster\server0

FileOutputStream output = new FileOutputStream(new File("tm.xls")); wb.write(output); output.flush();

output.close();

pls help

Message was edited by:

yzme yzme

Accepted Solutions (1)

Accepted Solutions (1)

ashutosh_rastogi
Active Contributor
0 Kudos

Check this tutorial ... might be of your help

<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d2201c20-0801-0010-49b3-94fca8f590d5">Uploading and Downloading Files</a>

Ashutosh

Answers (0)