VpeStreamWrite

<< Click to Display Table of Contents >>

Navigation:  Memory Streams >

VpeStreamWrite

Previous pageReturn to chapter overviewNext page

[Professional Edition and above]

Writes data to the supplied stream.

int VpeStreamWrite(

VpeHandle hStream,

BYTE *buffer,

int size

)

VpeHandle hStream

stream handle

BYTE *buffer

pointer to the buffer, from which the data will be copied to the stream

int size

the number of bytes that shall be written

Returns:

Value

Description

True

success

False

failure

Remarks:

If you want to call a VPE method (for example ReadDocStream() or PictureStream()), after you have written data to a stream, you need to call VpeStreamSeek(hStream, 0) first before calling VpeStreamWrite () in order to reset the internal stream pointer to the beginning of the stream.