Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read Binary data

Status
Not open for further replies.

tfoulkes

Technical User
Dec 5, 2003
17
GB
Hi,
I'm updating some ASP and am trying to figure out what the code does now, and I'm stuck!
The file handles downloads.
The following code I'm not quite sure about:

set ebsReader = Server.CreateObject("EBSReader.ReadBinary")
binaryStream = ebsReader.ReadBinaryFile(filePath)
Response.BinaryWrite(binaryStream)

This is my idea, correct me as appropriate!

It's setting the value of variable "ebsReader" to a Server Object called "EBSReader" but I don't understand the ".ReadBinary". Is this a method?

It's then making the value of "binaryStream" equal to the "ebsreader.ReadBinaryFile" with the variable "filePath" as the data for this method.

It's then writing this out as a binary stream to stop any character conversion.

Thanks in advance!

Timbo

 
EBSReader is a com object
look for 'EBSReader.dll'

Set ebsreader = creates an asp object of EBSReader

ReadBinary is a method within the com object
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top