←Select platform

Write(Stream) Method

Summary

Accepts a buffer of the editable document or part of it, and writes it to an upstream or to a requesting party.

Syntax
C#
C++/CLI
Python
public RasterExceptionCode Write( 
   Stream stream 
) 
public:  
   RasterExceptionCode^ Write( 
      Stream^ stream 
   ) 
def Write(self,stream): 

Parameters

stream

Stream with editable contents, can be all or part of the data.

If Stream is empty it does not mean it is at the end of the stream and should return RasterExceptionCode.Success in this case.

Return Value

Value Description
RasterExceptionCode.Success Stream was received successfully.
RasterExceptionCode.Failed Error occurred. Server should return the exception with this error code.
RasterExceptionCode.UserAborted Operation was aborted.
Remarks

Servers call Write(Steam) with chunks of data, repeatedly until all data is written or sent. The server must guarantee sequential calls to Write(stream) and that only one thread at a time is writing. On the other hand, Clients read all data in the stream and typically send it upstream to a web client.

Requirements

Target Platforms

See Also

Reference

IDocumentPushStream Class

IDocumentPushStream Members

Leadtools.Document Namespace

Help Version 22.0.2023.4.21
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.