Discuss this help topic in SecureBlackbox Forum
This event is fired when your software has to read the data from the file.
Declaration
[Java]
TElSFTPServerReadEvent getOnReadFile();
void setOnReadFile(TElSFTPServerReadEvent Value);
TElSFTPServerReadEvent.Callback OnReadFile = new TElSFTPServerReadEvent.Callback() {
public void TElSFTPServerReadEventCallback(TObject arg0, TObject arg1, long arg2, byte[] arg3, int arg4, int arg5, TSBInteger arg6, TSBInteger arg7, TSBString arg8) {
//...
}
}
Parameters
- Data - user data associated with the opened file
- Offset - position from which the file is read
- Buffer - buffer that contains read data
- BufferOffset - start position in the buffer from which the data must be read
- Count - amount of bytes to be read
- Read - amount of bytes have been actually read
- ErrorCode - the error code, see values below
- Comment -
- pcComment -
- szComment -
Error codes values:
Description
This event is fired when the file contents must be read and sent to the client.
The application can return the error code in ErrorCode parameter and textual comment in Comment parameter.
Discuss this help topic in SecureBlackbox Forum