Hi all,
I am not able to download the file using chrome (notwork error). I understand it can happen due to security settings in chrome. So, I am saving the file to database and retrieving from the DB. But when saving the created document to memorystream and then reading from it, I see a bunch of junk characters.
here are the stops:
1. create document object through createdoc method.
2. Load it into memorystream:
Dim stream As New System.IO.MemoryStream()
objWordDocument.Save(stream, Syncfusion.DocIO.FormatType.Docx)
3.get the binary data :
Dim b() As Byte
Using br As New System.IO.BinaryReader(stream)
b = br.ReadBytes(stream.Length)
End Using
save into database and retrieve it. But it has junk characters. Please help.
Dim Response As System.Web.HttpResponse = System.Web.HttpContext.Current.Response
Response.ClearContent()
Response.ContentType = "application/Doc"
Response.BinaryWrite(attachmentInfo)
This one has the junk characters.
Thanks a lot.
Anandi
End Using