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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top