We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy
Ask Your Question
0

How to upload images to Orion Context Broker

asked 2017-12-15 06:08:48 +0200

kazuki urabe gravatar image

Hello,

I would like to send images to Orion using Web API. But I can not find the documents about it.

Let me know how to send images.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2017-12-18 09:57:31 +0200

jmcantera gravatar image

updated 2017-12-18 09:58:09 +0200

Hi,

You cannot do that and should not do that. Even though there is a workaround, using data URIs, I would not recommend it if images are going to be bigger.

For storing images my recommendation is to use an object storage service such as S3 or Swift. The latter can be used from the Fiware Lab. Then, Orion entities can have an attribute (a URL) that will point to the object storage and in particular to the referenced image, such as

{ "id": "MyBuilding", "type": "Building", "photo": { "type": "URL", "value": "http://object.storage.org/objId" } }

edit flag offensive delete link more

Comments

Thank you. I am going to try it using Object storage GE. https://catalogue.fiware.org/enablers/object-storage-ge-fiware-implementation

kazuki urabe gravatar imagekazuki urabe ( 2017-12-22 01:00:33 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-15 06:08:48 +0200

Seen: 938 times

Last updated: Dec 18 '17