I’m trying to support context imagery in a custom web viewer for Speckle. Since Speckle doesn’t currently support texture mapping (as far as I know), I’m hoping to upload an image alongside a Speckle geometry that I can then apply as a texture in a web viewer.
I saw this discussion around blob support for a similar use case, so I assume blobs are supported currently, but I can’t find any examples of their use with images.
What format does the image data need to be in so that we can connect it correctly via GH?
A PR has been merged into speckle-sharp/core to add blob support. But that functionality has not been exposed to connectors or received the documentation love it deserves.
As an option B, you can use the server’s blob api to store blobs attached to the stream:
the ${serverUrl}/api/stream/{streamId}/blob endpoint support multipart/form-data with file uploads.
The response contains a blobId, which can be used to retreive the blob content via:
${serverUrl}/api/stream/{streamId}/blob/{blobId} in your custom web viewer.