on 05-04-2008 3:30 PM
Hi,all
How can I store the file that I upload with FileUpload element on application server?
Regards,
Michael
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.