Hi, I am new in Aspose.word component. I tried to save a word document into Html format, and the document contains some images which come from server side(I am going to put this web application on server) therefore, the address of export image folder has to be URL format.
I know how to use doc.saveoption.HtmlExportImagesFolder, but it only works for local folder. Is there any way I can specify the folder as URL address? Does HtmlExportImagesFolderAlias use on this situation? If yes, could you please provide some example code?
Here is my code:
Dim FilePath As String = "C:\XXXX.docx"
Dim doc As New Aspose.Words.Document(FilePath)
Dim stream As Stream = New MemoryStream()
Dim path As String = Request.Url.AbsoluteUri
path = path.Replace(Request.Url.AbsolutePath, "")
doc.SaveOptions.HtmlExportImagesFolder = path + "/Temp/"
doc.Save(stream, SaveFormat.Html)
Dim pos = stream.Position
stream.Position = 0
Dim reader As New StreamReader(stream)
Dim str = reader.ReadToEnd()
txtDesc.Text = Server.HtmlDecode(str)
stream.Close()
Thanks for your help.