cancel
Showing results for 
Search instead for 
Did you mean: 

store uploaded file on application server

Former Member
0 Kudos

Hi,all

How can I store the file that I upload with FileUpload element on application server?

Regards,

Michael

Accepted Solutions (1)

Accepted Solutions (1)

former_member182374
Active Contributor
0 Kudos

Hi,

Try the following code:

byte file = wdContext().currentContextElement().getFileContent();

File file = new File("c:
myFile");

FileOutputStream out = new FileOutputStream (file);

out.write(file);

out.flush();

out.close();

FileContent type is binary and bound to data property of the FileUpload element.

Omri

Former Member
0 Kudos

Hi,Omri

Thanks for your reply.

Have you tried to do this with InteractiveForm element on the same view and

FileContent attribute bounded to pdfSource property of InteractiveForm?

Regards,

Michael

Answers (0)