cancel
Showing results for 
Search instead for 
Did you mean: 

file upload / download in webdynpro 04s for java

Former Member
0 Kudos

hi all

Please let me know the way to set the new property called "Resource" in both the upload and download UI element in webdynpro 04s for java!! Thank you a lot.

reg

vln

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Thank you!!

1. But when i use the File Upload UI and try to use the 'data' property to retrieve the bytes i am getting a null pointer exception meaning the data is not being picked up by the UI even though browsed file has data.

2. How I am I supposed to set the 'Resource' property while downloading a PDF which has UTF-16 text and picture??

Note: I have done the same scenario using WD04 java without any trouble.

reg

vln

Former Member
0 Kudos

Lakshminarayanan,

Either use "resource" property of FileUpload/FileDownload control with attribute of type Resource, or use "data" property with attribute of type binary. Do not mix them.

In NW 04s use property "resource" and attribute of type Resource and left property "data" empty. Ignore the error message IDE shows for property "data".

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

hi Valery Silaev

Thank you very much!! This indeed solved the problem and I am able to both upload and download from KM. I have used the resource property alone.

reg

vln

Answers (1)

Answers (1)

Former Member
0 Kudos