Fiware-Orion how to save an image .png file to ori

2019-07-27 00:58发布

问题:

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:

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