We use CuteEditor to allow users to insert limited html tags in text along with tables and images. We then use inserthtml to insert this clob of text into doc created using Aspose. We do use a template so the reference should be set. The document works fine on local development machine but the images don’t show on development server running IIS. The images appear as the red x. The html for the image in the clob field points to a file that downloads the image from a database (ex: src="http://Site/Folder/DownFile.Aspx?fileid=2"
). I have used builder.Write to check text and the location to the file is correct and if I copy the src for the image from the text being written above and paste it in the address of IE, the image shows fine.
I have placed the following code to test inserting image from file structure (works fine):
Dim baseUri As String = "<base href="" " & Server.MapPath(" .") & "" "/>"
builder.InsertHtml(baseUri + "<img alt='' src='../images/alert.gif' />")
I use the same code when inserting the clob text that contains the images:
Dim baseUriDeclaration As String = "<base href="" " & Server.MapPath(" .") & "" "/>"
builder.InsertHtml(baseUriDeclaration + clb_text)
I feel it is a permissions issue but not sure where. I get no exceptions and nothing is written to any logs.
Any help would be appreciated.