Re: FileStreamResult Image and InsertHtml

Hi,


I am not able to display the image on aspose pdf document. Only text is being displayed and in place of image I am getting cross mark.
I used “builder.InsertHtml(html)” statement and in “html” I am getting the image tag + text from Sql Server data base table column in the form of string.
I am getting the below string in html.
"<img alt="" src="/EditorImages/Nuvola_apps_personal.png" />xyz"
But after executing “builder.InsertHtml(html)” statement, I am getting the text “xyz” and in place of image it is showing cross mark.
I am using aspose words 11.10.0 version.

Please help me out.

Thankyou

Hi Funny,

I’m not sure this is directly related to the problem I was having, but I do have a suggestion: Try to use the FULL URL of the image in the SRC attribute, instead of a relative path. If the FULL URL requires a log-in to access the image, then you probably are having the same issue as me; otherwise you should see the image instead of the red x placeholder.


Thanks, -B

[Double post - admin please delete]

Hi Phani,

Thanks for your inquiry. Please upgrade to the latest version of Aspose.Words 14.12.0:
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

In case the problem still remains, please create a standalone runnable console application that helps us reproduce your problem on our end and attach it here for testing. Also, please attach your input document and image file you're getting this problem with here for testing. As soon as you get this simple application ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

Best regards,