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?
Rookie Asked on October 21, 2022 in Other.
Add Comment
1 Answer(s)


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.



Intermediate Answered on October 26, 2022.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Become a Sponsor   Become a Sponsor