Saves binary data to a file.



Gestalt.Save inFile, inData


Name   Type   Description
inFile String The path to the file to be saved
inData Array The data to be saved as an array of bytes



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:

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:

Set gest = Server.CreateObject("ImageGlue7.Gestalt")
data = canvas.GetAs(ImageFileName, "Quality=normal")
gest.Save Path & ImageFileName, data


See Also

Gestalt Read function. Canvas GetAs function.