WriteBinary

The WriteBinary function writes a array of type SAFEARRAY or part of it to the disk file or to string variable.

WriteBinary safearray,iFrom,iHowMany,sFileName

Parameters

safearray
An array to write to a disk file of string variable.

iFrom
Variable specifying the the index of first alement of array will be written or convert to string in first turn.

iHowMany
Variable specifying the number of bytes will be written.

sFileName
Variable specifying the name of the file to write to. Or, the string variable containing empty string. In this case the binary data will be converted to string instead of writing to file.

Return value

The function returns True if successful. Otherwise, returns False.

Remarks

You can use this function to analize file uploads to your web server.

Example
See Upload example.