Click or drag to resize

FileUtilLinkOsGetObjectFromPrinter(Stream, String) Method

Retrieves a file from the printer's file system and writes the contents of that file to destinationStream.

Namespace: Zebra.Sdk.Device
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
void GetObjectFromPrinter(
	Stream destinationStream,
	string filePath
)

Parameters

destinationStream  Stream
Output stream to receive the file contents
filePath  String
The absolute file path on the printer ("E:SAMPLE.TXT").
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an issue communicating with the device (e.g. the connection is not open).
ZebraIllegalArgumentExceptionIf the filePath is invalid, or if the file does not exist on the printer.
Remarks
Will retrieve the following file extensions: ZPL, GRF, DAT, BAS, FMT, PNG, LBL, PCX, BMP, WML, CSV, HTM, TXT.

Files transferred between different printer models may not be compatible.
See Also