Blob Storage
Store large binary files like images and videos directly in SoliDB with automatic chunking, metadata management, and high-availability replication.
Overview
SoliDB Blob Collections provide a native way to store binary large objects (BLOBs). Unlike standard collections which store JSON documents, blob collections are optimized for immutable binary data.
Chunking
Files are automatically split into manageable chunks for efficient storage and streaming.
Replication
Chunks are consistently hashed and replicated across the cluster. SoliDB automates replication factors (min 2, max 10) for high availability.
Metadata
Automatic JSON metadata document generation for querying and management.
Creating a Blob Collection
Create a collection with type: "blob".
Uploading Files
Use multipart/form-data to upload files. The field name for the file content must be file.
Response
{
"_key": "018e2345-6789-7abc-def0-1234567890ab",
"name": "my-photo.jpg",
"type": "image/jpeg",
"size": 1048576,
"chunks": 4,
"created": "2024-03-15T10:00:00Z"
}
Downloading Files
Metadata & Querying
Because metadata is stored as standard JSON documents, you can filter and query your blobs using SDBQL.
FOR doc IN images FILTER doc.type == "image/jpeg" FILTER doc.size > 5000000 RETURN doc
Important Note
Deleting the metadata document does NOT automatically delete the binary chunks. Use the DELETE /_api/blob endpoint (coming soon) for full cleanup.