How to upload images to Orion Context Broker
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.
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.
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"
}
}
Thank you. I am going to try it using Object storage GE. https://catalogue.fiware.org/enablers/object-storage-ge-fiware-implementation
Asked: 2017-12-15 06:08:48 +0100
Seen: 975 times
Last updated: Dec 18 '17