on 10-29-2011 2:56 PM
hi,
I want to display a document in a dynpro view. The FileDownload UI element is bound with Resource type of an attribute.
The documents data that I get from the backend is a byte array for example bincon[]. how do I set this byte array in a resource type of attribute ?
basically, how to convert byte[] to resource ?
thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
byte[] content = loadExceldata();
IWDResource resource = WDResourceFactory.createCachedResource(content, "employee" + System.currentTimeMillis() + ".xls", WDWebResourceType.XLS);
wdContext.currentLocalVariablesElement().setResource(resource);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please look at this document. This is having how to upload .XLS file through WDJAVA Application. Please look at this
[wiki|http://wiki.sdn.sap.com/wiki/display/WDJava/UploadingexcelfileusingWebDynproforJava] and [Document|http://wiki.sdn.sap.com/wiki/display/WDJava/Re-creatingtheFileObjectfromWebDynProFileUploadUIcontrol]
System.Text.Encoding enc = System.Text.Encoding.ASCII;
string myString = enc.GetString(myByteArray ); // where myByteArray is byte[]
Hope this is help full for u
Regards
Vijay
Edited by: VijaySAPEP on Nov 1, 2011 4:39 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please find the below link
Thanks,
Rahul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.