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".

Tip

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

PropertyDescriptionValuesMandatory
keyUnique 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.stringYes
objectKeykey of the object (declared by this package’s objects) this image is attached to.stringYes
nameFile name of the image.stringYes
contentTypeMIME type of the image, e.g. image/png.stringYes
base64ContentBase64-encoded image content.stringYes