Overview
A middleware service that automatically chunks large images into 64KB pieces, stores them on Arkiv with integrity verification, and serves them back as complete files. Perfect for NFT images, app assets, and any use case requiring decentralized image storage without protocol limitations.
How it uses Golem DB
// Upload image with ImageDB SDK
import ImageDB from './imagedb-sdk.js';
const client = new ImageDB('https://imagedb.online');
// Upload with options
const result = await client.upload(file, {
idempotencyKey: 'unique-key-123',
ttlDays: 30
});
console.log('Media ID:', result.media_id);
// Retrieve image
const imageBlob = await client.get(result.media_id);
const imageUrl = URL.createObjectURL(imageBlob);
// Check quota
const quota = await client.getQuota();