add_embedded_image
Read a real image file from disk, base64-encode it, and store it as an embedded image for Power BI Report Builder reports. Validates MIME type against the file's magic bytes.
Instructions
Read a real image file off disk, base64-encode it, and store it under . Reference it later with image_source='Embedded' + value=. Supported MIME types: image/bmp, image/gif, image/jpeg, image/png, image/x-png. The file's magic bytes are sniffed and must match mime_type — claiming PNG bytes as image/jpeg is rejected here rather than letting Report Builder fail at preview time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| mime_type | Yes | ||
| image_path | Yes | Filesystem path to the source image. |