I can convert a base64 image to a PNG image and save the file in a custom table.

Ariomar de Deus
Tera Contributor

I have a request that requires me to convert a base64 image to a PNG image and save the file in a table.

I have a field in the catalog item that contains my base64 image. I need to convert this field to a PNG image and save it in a spreadsheet. However, I don't know how.
Could someone help me with this script?

1 REPLY 1

Rafael Batistot
Kilo Patron

Hi @Ariomar de Deus 

 

This post might help you 

 

https://www.servicenow.com/community/developer-articles/post-an-image-base64-encoded-string-directly...

If this response was helpful, please mark it as Helpful and, if applicable, as Correct, this helps other users find accurate and useful information more easily.