I'm trying to read a pdf file into a byte array. On wlanguage, after several trial/error, found that hte buffer variable is the one that matches byte array. Here is my code where sdocumentTitle has the filename of a pdf file.
As can be seen on the code, I save the buffer variable to a file with pdf extension and after that I can read that file without errors on any pdf reader.
My problem is: after all these steps I need to send the buffer (byte array) variable as parameter to a webservice. And the webservice is answering back:
Invalid PDF File. Cross-reference table not found.
But the file created from the buffer variable is correctly opened so I can not guees where the problem is...any advice, tip or correction to the code?
Thanks in advance,