I m writing this code in VB.NET web application to set the MIME type for some particular file extensions.It working fine but what
i want to do is i don't want the web application I want this code in vb.net 1.1 console application.Is it possible to use httpresponse in
console application?
Dim fs As System.IO.FileStream = Nothing
fs = System.IO.File.Open("C:\...\test.zip", System.IO.FileMode.Open)
Dim btFile(fs.Length) As Byte
fs.Read(btFile, 0, fs.Length)
Response.AddHeader("Content-disposition", "attachment; filename=" + "test.zip")
Response.ContentType = "application/octet-stream"

why do u need console application?why not web?