Use this function to save binary data into a file if for
instance you want to save request data or uploaded files that are
not text or image.
For example you might want to save out raw http request data
into a file:
[VBScript]
data = Request.BinaryRead(Request.TotalBytes)
myobj.Save "C:\RawData.txt", data
Or you might want to bypass the Canvas.SaveAs method so that you
can modify the output data before it is saved:
[VBScript]
Set gest = Server.CreateObject("ImageGlue7.Gestalt")
data = canvas.GetAs(ImageFileName, "Quality=normal")
gest.Save Path & ImageFileName, data
|