How to store an image from context broker?

2020-04-16 05:30发布

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条回答
霸刀☆藐视天下
2楼-- · 2020-04-16 05:49

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.

查看更多
登录 后发表回答