Blob support in Span
Trondheim, 2023-02-21
New feature - support for blobs in Span
The latest version of Span now includes experimental support for blobs.
Blobs are uploaded via a regular HTTP POST to http://172.16.15.14/
if you run on a mobile network or https://data.lab5e.com/
if you run an internet-connected device. The internet-connected device must have a client certificate when posting data. The devices on the mobile can just use old vanilla HTTP to upload the blob.
Once the device has posted the blob it is available in the Span fronted. If the device has set the Content-Type
to one of the image types you can preview it directly in the frontend. Other MIME types must be downloaded.
Downloading it from the API is also simple - just send a GET
request to https://api.lab5e.com/span/collections/{collectionId}/blobs/{blobId}
and you’ll get the blob as any web page.