AddBytes Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
If the .xod if not accessed via a URI but via some other mechanism that can provide a stream of bytes (e.g. directly from a WCF service), then this method may be used to provide the retriever with bytes as they become available. Do not provide the constructor with a URI if you intend to use this method.

Namespace: PDFTron.SilverDox.IO
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void AddBytes(
	byte[] newBytes,
	int numNewBytes
)
Visual Basic
Public Sub AddBytes ( _
	newBytes As Byte(), _
	numNewBytes As Integer _
)
Visual C++
public:
void AddBytes(
	array<unsigned char>^ newBytes, 
	int numNewBytes
)

Parameters

newBytes
Type: array<System..::..Byte>[]()[][]
A byte array containing the new bytes.
numNewBytes
Type: System..::..Int32
The number of valid bytes in the array.

Remarks

This method is not normally used as most scenarios involve transfering the document from a URI provided to the retriever in the constructor.

See Also