I don't want to open a new topic for it and think it wil be fine in this one:
I can open PDF files hard coded or with an fileopendialog and show them with the jpedalSTD bean in a mediafield. I also got browsing through pages working.
Now I have the following problem (people who read my other posts already know some content): I get an XML form a webservice. THe XML containst lots of data and ends with an encoded PDF file bases on base64.
I decode the base 64 and can write it to a PDF file. No problem at all.
But what I want is decode the PDF, show it to the user and save it on buttonclick or something.
code:
writing to PDF
- Code: Select all
encodedByte = plugins.file.writeFile("c:/test.pdf", plugins.it2be_cryptor.Base64decode(vStruct[0].text));
And I want something like:
- Code: Select all
elements.bean_844.openPdfFile(plugins.it2be_cryptor.Base64decode(vStruct[0].text));