Hi all,
I have a page called GetFile.aspx which does the simple job of converting the aspx document into either a word or PDF file for downloading of viewing online (dependant on user browser settings) but im having an issue where the file im including must have write access for it to be opened and shown in the browser.
Dim fs As New FileStream(FileName, FileMode.Open)
Using (fs)
Dim data() As Byte = New Byte(fs.Length) {}
Dim br As BinaryReader = New BinaryReader(fs)
br.Read(data, 0, data.Length)
br.Close()
Response.Clear()
Response.ContentType = FileFormat
...
Go to the complete details ...