

StrTempName = strTempName.Substring(0, strTempName.IndexOf("."))Ĭ("Content-Disposition", "inline attachment filename=""" & strTempName & ".pdf" & """")Ĭ("Content-Length", ())Ĭ = "application/octet-stream"Ĭontext.Response. OFileStream.Write(docArray, 0, docArray.Length - 1)ĭoc.LoadFromStream(oFileStream, )ĭoc.SaveToStream(oFileStream, )ĭim streamLength As Integer = Convert.ToInt32(oFileStream.Length)ĭim fileData As Byte() = New Byte(streamLength) When an octet stream comes into Perl, the bytes should be decoded (using the correct character set - the character set they were encoded with) so that Perl can determine which logical characters are contained in the encoded octet stream.


OFileStream = New System.IO.FileStream(strTempName, System.IO.FileMode.Create) Encoded characters make up an octet stream. I've tried this which the pdf is corruptedĭim doc As = New () I'm trying to convert it to pdf and add it to the Response object so the user can download it or open it.
