Property description
The objectImages asset uploads a binary image and attaches it to an object created by a data package’s objects. Declare it inside the data scope that owns the object; asset-level assets.objectImages covers images whose object sits in another scope. Only valid on packages with "type": "data".
Reference an uploaded image from an object attribute’s value using the token dawiso-pkg://object-image/<imageKey>. The package install rewrites the token to the image’s serving URL, GET /api/object-image/{packageKey}/{imageKey}. Images only upload for objects created in the same install run — an objectImages entry targeting an object installed by an earlier package version is skipped.
Minimal JSON
{
"key": "",
"objectKey": "",
"name": "",
"contentType": "",
"base64Content": ""
}{
"key": "customer_db_icon",
"objectKey": "customer_db",
"name": "icon.png",
"contentType": "image/png",
"base64Content": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
}Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. Only letters, digits, underscores, and hyphens ([A-Za-z0-9_-]) — it’s served back as a URL path segment. | string | Yes |
objectKey | key of the object (declared by this package’s objects) this image is attached to. | string | Yes |
name | File name of the image. | string | Yes |
contentType | MIME type of the image, e.g. image/png. | string | Yes |
base64Content | Base64-encoded image content. | string | Yes |