This event is triggered whenever a packet (or the complete file) is received as a result of calling the ReceiveMemoryFile method.
The ReceiveMemoryFile's eReceiveMemOptions parameter determines if this event is triggered once for each received packet, or only once when the complete the file has been received. If you called the ReceiveMemoryFile method with the RepresentationType parameter set to frtBinary, then this event's vaData parameter will contain an array of bytes. If the RepresentationType parameter was set to frtAscii, thenthevaData parameterwillcontain a BSTR.
The parameters provided by the ReceivingMemoryFileData event are not modifiable.
Parameter | Description |
---|---|
sRemoteFilename | The remote filename being received. |
lFileSize | The file size of the file being received as reported by the FTP server. |
vaData | An array of bytes or a BSTR containing the file data received from the FTP server. May be empty. |
bEndOfData | When this flag is False, it indicates to you that there is still more data to be provided for the current file. In this case, the ReceivingMemoryFileData event will be triggered again (with the same sRemoteFilename parameter) so you can obtain more data. When this flag is True, there is no more data to be provided for the current file. |
Declaration (event) | |
---|---|
|
Declaration (interface implementation) | |
---|---|
|