on 09-15-2008 9:57 AM
Hello SDN,
Im trying to implement offline Interactive webdynpro scenario which is given in SDN. In download View I have filedownload UI element. And I have my interactive form is saved in my local machine.
(Bascially user sould be able to download the interactive form)
While writing coding in the implementation part for download view, which path I should give for my "pdf" file. I have tried all possible ways but once I execute Im getting following error:
"A file or directory in the path name does not exist."
the following is the code in init ()
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
binaryType.setFileName("Test.pdf");
binaryType.setMimeType(WDWebResourceType.PDF);
String fileName = "
OfflineTest
src
mimes
Components
com.xxx.OfflineTest
Test.pdf";
File file = new File(fileName);
FileInputStream in = new FileInputStream(file);
ByteArrayOutputStream out = new ByteArrayOutputStream();
int length;
byte[] part = new byte [10 * 1024];
while ((length = in.read(part)) != -1)
{
out.write(part, 0, length);
}
can some one tell me where i went wrong.
J.Smitha
Hi,
i hope you are using the "interactive form" UI element in your view, which will have the corresponding context for it.
and you dont have to use any other download UI element.
there shall be a save button on the Interactive form only.
regards,
-amol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Can some one reply? Im still facing the problem. I dodnt know y it is not able to find the pdf file even after placing it in src/mimes/components/adobe.test.com/test.pdf.
Is there any other way?
full points assured
J.Smitha.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.