Hello everyone, Please let me know how I can creat...
# suitescript
h
Hello everyone, Please let me know how I can create an image file through suite script? I have tried with this mentioned code but get an unexpected error every time. Slack Conversation
b
that code is basically the opposite of what you want to do
binary files like png are represented as a base64 encoded string in suitescript
you do not want to decode a base64 string
especially if it is binary to begin with, the decoding errors basically destroy the file contents
h
Battk can you please share a sample binary string with me ? So I can check how it will works . I had tried without decoding as well
Should I remove starting information ?
b
save your favorite png in the file cabinet
load it in suitescript and log the file contents
h
Okay thanks I will check that
b
preferably a small png so its not a pain to log it
h
@battk Thanks , It works 👍