How to store an image from context broker?

ぐ巨炮叔叔 提交于 2019-12-31 03:19:12

问题


I want to send images from various android to context broker, I am not sure how I would go about decoding the image from string format and then storing it to the file system and database respectively. Would I have to develop my own python script or could Cygnus help me out here?


回答1:


Although there are several approaches to transcode a binary file (such an image) into text (e.g. Base64) it doesn't use to be a good idea in Orion Context Broker. Big static files are better placed in an Object Storage service, such the one that FIWARE provides.

Each file in such systems is identified by an URL. You can use that URL for the attribute values in Orion Context Broker that refer to the given image.



来源:https://stackoverflow.com/questions/31474823/how-to-store-an-image-from-context-broker

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