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

*爱你&永不变心* 提交于 2019-12-24 08:09:20

问题


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



来源:https://stackoverflow.com/questions/42860177/fiware-orion-how-to-save-an-image-png-file-to-orion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!