1
votes

As the title, I want to save my .png file to Orion. I tried to use binary file but I got an error due to fobiden character? So It is posible to save png file to orion. Is there a best practice for the case. Many thanks

1
This question has been already answered: stackoverflow.com/questions/31474823/…fgalan
Thank you so much.English learner

1 Answers

1
votes

if the image is not so big you can use a data URL

https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs

otherwise I would use an external storage mechanism and only keep in Orion a URL pointing to the object storage where your image is.

best