App Builder: Recommended way to display inline images in internal notes
Hello,
I am building a custom Internal Note App using Zendesk App Builder.
The reason is that our agents sometimes accidentally post public comments instead of internal notes because both use the same editor. To reduce this risk, we are trying to provide a dedicated editor for internal notes through App Builder.
One of our requirements is to support inline images in internal notes, similar to Zendesk's native internal note editor.
What we tested
Method 1: Data URL (FileReader)
We use:
JavaScript ‘FileReader.readAsDataURL(file)’
and then include the generated Data URL inside:
JavaScript ‘comment.html_body’
This works for some small images.
However, we observed unexpected behavior around image size:
| Image size | Result |
|---|---|
| 39 KB | Works |
| 41.6 KB | Works |
| 47.8 KB | Works |
| 50.4 KB | Fails |
| 51 KB | Fails |
| 59 KB | Fails |

When it fails, the image is not displayed and browser console sometimes shows errors such as:
cid:screenshot-xxxx.png
ERR_UNKNOWN_URL_SCHEME
or
Not allowed to load local resource: blob:
Method 2: Uploads API
We also tried implementing the Uploads API flow described in the Zendesk documentation:
- Upload image to
/api/v2/uploads.json - Get upload token
- Add token to comment uploads
- Reference uploaded image in
html_body
However, from App Builder / ZAF we encountered issues such as:
403 Forbidden or 422 Invalid URI
depending on the implementation approach.
Questions
- Is storing
data:image/...;base64,...incomment.html_bodyofficially supported? - Are there any documented limits for Data URLs or image size in
comment.html_body? - What is the recommended way to implement inline images from an App Builder app?
- Is there a supported way to reproduce Zendesk's native internal note image behavior from App Builder or ZAF apps?
Our goal is simply:
Allow agents to insert and display inline images inside internal notes from a custom App Builder app in the same way Zendesk native internal notes support inline images.
Any guidance or recommended architecture would be greatly appreciated.
Thank you!
