Skip to Content
Former Member
Jul 27, 2007 at 12:23 PM

Able to download file from the server but the file is not opening



I am trying to down load file from the sever,which i have already uploaded in to the server,

->For that i am calling a Bapi which is returning me the file in terms of byte array.

->After that i m creating a variable of type IWDResource

IWDResource resource=WDResourceFactory.createResource(b,"New Microsoft Excel Worksheet.xls",WDWebResourceType.XLS);

->Then setting the context attribute of type resouce,which is bound to FileDownLoad UI Element's data property with the resource variable(in the previous step)

But after down loading and saving the file in my local machine,When i am opening the file it is showing "The file can not be read".

But it is working fine with text file,but not for any other kind of file.

Can anyone please suggest regarding this......

Thanks in advance