If you are using ASP, that means you are attempting to do this at the server-side. So how come you haven't declared the server for the created object?

Code:
Set BinaryStream = Server.CreateObject("ADODB.Stream")
EDIT: And is this where you got the example?