Trying to convert from VBScript to VB.NET to work in my ASP.NET app

  • Thread starter Thread starter klj_mcsd
  • Start date Start date
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
 
Back
Top