nzy
09/07/2020, 1:51 AMfile.create()
with the content getting from https.response.body
? it's saving a PDF as file.File generated by a suitelet but when doing that, an unexpected error occurs. I assume I was at fault not NetSuite😔 cheersbattk
09/07/2020, 1:52 AMbattk
09/07/2020, 1:52 AMbattk
09/07/2020, 1:53 AMnzy
09/07/2020, 1:56 AMbattk
09/07/2020, 1:58 AMbattk
09/07/2020, 1:59 AMbattk
09/07/2020, 1:59 AMnzy
09/07/2020, 1:59 AMBaseEncoding$DecodingException: Invalid input length 15253
occursbattk
09/07/2020, 2:00 AMbattk
09/07/2020, 2:00 AMnzy
09/07/2020, 2:08 AMbattk
09/07/2020, 2:09 AMnzy
09/07/2020, 2:17 AMapplication/pdf
weirdfacepalmbattk
09/07/2020, 2:29 AMbattk
09/07/2020, 2:29 AMnzy
09/07/2020, 2:33 AMnzy
09/07/2020, 3:05 AMresponse.write(nlapiEncrypt(file.getValue(), 'base64'));
and on the client side I directly save the response body as file.File. It works well. You are a legend🖖battk
09/07/2020, 5:23 AM