K
klj_mcsd
Trying to convert from VBScript to VB.NET to work in my ASP.NET app
Set stream = server.CreateObject("ADODB.Stream")
stream.Type = adTypeBinary
stream.Open
stream.LoadFromFile Server.MapPath(filename)
contents = stream.read
' Write stream to Response object
Response.ContentType = mimeType
Response.BinaryWrite contents
Can someone help. Thanks
Set stream = server.CreateObject("ADODB.Stream")
stream.Type = adTypeBinary
stream.Open
stream.LoadFromFile Server.MapPath(filename)
contents = stream.read
' Write stream to Response object
Response.ContentType = mimeType
Response.BinaryWrite contents
Can someone help. Thanks