Converting PDF Binary String to PDF File or Base64
Converting PDF Binary String to PDF File
Hi guys, how are you?
We are doing a banking integration, and we are trying to get a payment receipt (PDF). When we query their API, they return a binary string (as per their documentation), and the header is an application/pdf. I’m trying to see how I can save this file in netsuite, but I think we’re having trouble converting what we get. Can anyone help us?
Hi,
The only thing I can think of is something that has worked for me when POSTing data. That is using the “Content-Transfer-Encoding” header to specify the encoding as Base64.
Not sure if this works with GET too but it’s about the only thing I can think of that might help.
Thanks,
Chris



