<< Click to Display Table of Contents >> Read |
[Professional Edition and above; .NET, Java, PHP, etc.]
Reads data from the supplied stream.
method override int TVPEStream.Read(
[InAttribute] [OutAttribute] byte[] buffer,
int offset,
int count
)
byte[] buffer
the buffer, to which the data will be copied from the stream
int offset
offset into the buffer
int count
the number of bytes that shall be read
Returns:
The number of bytes read from the stream.
Remarks:
When reading from a stream, which was written by a VPE method, e.g. WriteDocStream() or PictureStream() etc., you need to call Seek(0) first before calling Read() in order to reset the internal stream pointer to the beginning of the stream.