如何存储上下文代理中的图像? [英] How to store an image from context broker?

查看:56
本文介绍了如何存储上下文代理中的图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将图像从各种android发送到上下文代理,我不确定如何从字符串格式解码图像,然后分别将其存储到文件系统和数据库中.我需要开发自己的python脚本还是Cygnus可以在这里帮助我?

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?

推荐答案

尽管有几种方法可以将二进制文件(例如图像)转码为文本(例如提供.

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.

此类系统中的每个文件都由URL标识.您可以将该URL用于Orion Context Broker中引用给定图像的属性值.

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.

这篇关于如何存储上下文代理中的图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆