L
Laurahn
Hi:
I'm dealing with a file type when i convert it from a BLOB field on database and i use the Response.BinaryWrite method. The file type is *.chm. That's my code:
Private Sub ReadFile(ByVal MyData() as Byte)
If Not MyData Is System.DBNull.Value then
Response.Buffer = True
Response.ContentType ="application/octet-stream"
Response.BinaryWrite(MyData)
End If
End Sub
When i retrieve different type of file "Response.ContentType = "application/msword"" the code works fine. I can see the file on the IE or download the file to disk.
Can someone tell me, how can i retrieve *.chm files from database to end user. I want to make a simple download of the file.
I'm dealing with a file type when i convert it from a BLOB field on database and i use the Response.BinaryWrite method. The file type is *.chm. That's my code:
Private Sub ReadFile(ByVal MyData() as Byte)
If Not MyData Is System.DBNull.Value then
Response.Buffer = True
Response.ContentType ="application/octet-stream"
Response.BinaryWrite(MyData)
End If
End Sub
When i retrieve different type of file "Response.ContentType = "application/msword"" the code works fine. I can see the file on the IE or download the file to disk.
Can someone tell me, how can i retrieve *.chm files from database to end user. I want to make a simple download of the file.