I am trying to serve binary files from my web site without revealing the
path.
I know the basic principle, but I am facing practical difficulties. I am
setting
the proper content-type, for example application/pdf, image/gif, etc. But
I am not able to find the right way to actually write the binary data to the
browser. ASP does not have a method to read binary files, TextStream object
supports only text files. I even tried to write the binary data from a VC++
COM object, after loading the binary file into a VARIANT, I used
Response.BinaryWrite to write it and ended up with corrupt files. My method
of populating the VARIANT from the binary file may not have been correct.
Lots of download websites do it, I am sure it is not to difficult.
At least if somebody can tell me how to load a VARIANT from a binary file,
I may have some success.
Regards,
Sharath