on 06-03-2009 2:35 PM
Hi,
I'm trying to save an interactive form on the hard disk of my pc using web dynpro for java
To save the form, I created the following code :
boolean ok = true;
// get date of today
byte[] bytes = wdContext.currentContextElement().getPdfSource();
try
{
File file = new File("C:
form.pdf");
FileOutputStream os = new FileOutputStream(wdContext.currentContextElement().getFile());
os.write(bytes);
os.close();
wdContext.currentDataSourceElement().setApproverComments("ok" + bytes.length);
}
catch (IOException e)
{
// e.printStackTrace();
wdContext.currentDataSourceElement().setApproverComments(e.toString()+ bytes.length);
* ok = false;*
}
return ok;
With this code, I don't receieve any error message but can't find the file on my hard disk.
Do you know where the problem could come from?
Thanks a lot for your help
Karim
Hi,
The file will not be stored in your local system, it will save on Server system in specified location.
Use File download UI Element to download to your local system. or else, use the save button of interactive form.
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.