I have uploaded the file and while trying to read it only blank application is opening. eg:- If it is text file only the note pad is opened and there are no contents in it. Again while opening it asks "open with" what.
Please help me the code used is.
<%
On Error Resume Next
If Not Response.isClientConnected Then
Response.end
End If
Response.buffer = true
'"images/AspBinFile.gif"
mFile = request("file")
mFile="images/"& mFile
Response.contenttype = "image/gif"
'Response.ContentType = ContentType
Response.AddHeader "content-disposition","attachment;filename=" & mFile
Dim objBinFile, objFSO, objFile
Dim mFile, mMapFile
' Custom server component
Set objBinFile = Server.CreateObject("ASPBinFile.clsASPBinFile")
' FSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
mMapFile = Server.MapPath(mFile)
IF objFSO.FileExists(mMapFile) = False Then
Response.End
Set objFSO = Nothing
Set objBinFile = Nothing
End If
Set objFile = objFSO.GetFile(mMapFile)
mStream = objBinFile.BinFileRead(mMapFile)
Response.BinaryWrite mStream
Set objFSO = Nothing
Set objBinFile = Nothing
Response.End
%>