How do I convert a Base64 String to a PDF file using Suitescript 2.0? I need to send the files as email attachments but I receive them as Base64 strings
b
battk
07/28/2022, 2:27 PM
Use <https:/system.netsuite.com/app/help/helpcenter.nl?fid=section_4223861820.html|file.create> to create the file object
battk
07/28/2022, 2:28 PM
binary files like pdf are represented as base64 strings, so just use your base64 string as the contents
b
badazzke
07/28/2022, 2:49 PM
@battk I tried that but it’s not working. Below is a snippet of my code