Free Support Forum - aspose.cloud

How to add image in a Microsoft Word document report from JSON data in Dart using Aspose.Words REST API

Hello,

I try to create a report containing images using an array of bytes, but I get a file where the textboxes have not been replaced by the images after some time. I use JSON format.

The report is generated without any problem using url.

I use client aspose_words_cloud: ^21.2.0 (Dart).

demo.zip (56.7 KB)

@IlyasLefebvre

You may convert your image to a base64 string and pass it instead of URL in JSON data. Hopefully, it will help you to accomplish the task.
Imagebase64.zip (44.4 KB)