I'm fetching a Base64 PNG image from a remote API ...
# suitescript
d
I'm fetching a Base64 PNG image from a remote API with a M/R script and saving to file cabinet, for use by a legacy SS1 script which generates a PDF. Can anyone confirm the correct method for decoding in SS2 so the image works within the PDF? The saved file displays fine in a browser, but shows the usual multicoloured question mark.
t
is it set to Available Without Login?
that sometimes causes this issue
d
Tried that without success
b
basics for images are make sure it works not logged in
for N/render, make sure you escape the url
you likely can't use company wide usage for files generated via script
d
Actually, you are right - I had explored the available without login earlier, but had changed things slightly since then. It's now working OK.
Annoying that this is the case though, as it's borderline whether there's a potential privacy issue with the file content.