on 05-26-2009 1:44 PM
Hi experts,
can u solve my problem while creating an application for email interactive forms i am getting the error for the following code
byte[] pdfSource = bo.toByteArray();
newEmailNodeElement.setPdfsource(pdfSource);
element is not applicable for the arguments(byte[]).....
can anybody help me in that.....
thanks,
viswa
Hi,
See this code - this the solution for converting the IWDResource to byte array. I think you get some idea.
InputStream l_is_FileStream = wdContext.currentContextElement().getUploadedFile().read(false);
int l_int_NoOfBytes = l_is_FileStream.available();
byte[] byteArray = new byte[l_int_NoOfBytes];
int l_int_byteRead = l_is_FileStream.read(byteArray, 0, l_int_NoOfBytes);
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know if you can applicate this concept in your code, but instead you use a binary type, try to use a Resource type in your attribute pdfSource.
There is a link that use Resource object here:
[https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71]
Regards
Marcos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.