Hehe, well Bob, I wasn't even remotely aware that it was an ASP.NET
question. And to be honest, I'm a newbie in ASP and don't even know what the
difference is yet!.
The link above, wasn't exactly spot on in being helpful - have been
following links and ideas, but to no avail as yet. I just thought they'd be
an alternative method to output an image file rather than using
CreateTextFile. But perhaps, as there's no straightforward answer as yet,
there's no simple answer to my question?
I am an amateur at this, but AFAIK, there is no simple answer.
I have sucessfully used the information on the link provided (and
connected links referenced in it) to save binary both on the server and
the client (with client security permission of course) using VBScript.
Whether you are using basic ASP on the server, or you are seeking to
save the file client side using a responseStream from an
XMLHttpRequest, you must use either ADODB.Stream,
Scripting.FileSystemObject, XPCOM (Firefox) or some other component,
subject to any relevant security restrictions. As noted, VBScript and
JavaScript do not provide binary file handling natively.
I have no experience with ASP.NET, but I believe that it uses the
Microsoft .NET Framework, which provides a large library of components.
I would imagine that this would include binary file handling on the
server. Client side, I think you are still stuck with one of the
options above, and client side security restrictions.
Regards
Julian Turner