Hi everybody,
we want to open a PDF-Document from Backend in Web Dynpro. For the communication we use a Web Service.
In Backend we have a PDF-Document with data type XSTRING.
1. In Backend we convert the PDF-Document from XSTRING to STRING in order to send it via Web Service
2. Then we call the Web Service and pass by the STRING param
3. In Web Dynpro we convert the value from STRING to Bytes, like below:
IWDResource resource = WDResourceFactory.createResource( myPDFStringFromWS.getBytes(), "Doc1", WDWebResourceType.PDF);
4. We bind the Resource to a FileDownload-UI.
Unfortunately we get the error message: Document is not a valid PDF
How can we convert a String to IWDResource? Could the problem be in our first step, where we convert the XSTRING into STRING?
regards,
Sid