Hi,
I am facing issue with Inserting Image to Document using HTML as input using Aspose Word C#. I have replaced the src with full path and still it didn’t worked. The path of the image requires authentication.
I have tried with other image with has no authentication required and it worked.
Note: I can’t share the URL and sample project to reproduce the issue as it is the secured URL.
Following is the steps I have followed:
- Read the Jason Object from the Web API using authentication and from the object reading the HTML.
- Updating the Image SRC path to full URL path
- Passing HTML to builder.InsertHtml((string)args.FieldValue, true);
- Generating the document and saving it.
The above 4 steps are run under the HTTP connection open. After 4 step the HTTP connection of Web api is closed.
Output: The content of HTML is generating correctly in the document and only issue is with the Image and it is generating Cross Mark.
Is there any other way passing the authentication at the time of generation of document to read the Image?
Thanks,
Vasu