1 | initial version |
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" } }
2 | No.2 Revision |
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"
}
}}