Click or drag to resize

PrinterUtilGetObjectFromPrinter(Stream, String, String) Method

Retrieves a file from the printer's file system and returns the contents of that file as a byte[].

Namespace: Zebra.Sdk.Printer
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public static void GetObjectFromPrinter(
	Stream destinationStream,
	string connectionString,
	string filePathOnPrinter
)

Parameters

destinationStream  Stream
Stream to receive file contents.
connectionString  String
The connection string.
filePathOnPrinter  String
The file to retrieve. (e.g. "R:MYFILE.PNG")
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device.
ZebraPrinterLanguageUnknownExceptionIf the printer language could not be determined.
NotALinkOsPrinterExceptionThis feature is only available on Link-OS™ printers.
ZebraIllegalArgumentExceptionIf the filename is invalid or does not exist.
Remarks
Will retrieve the following file extensions: .FNT, .ZPL, .GRF, .DAT, .BAS, .STO, .PNG, .LBL, .TTF, .PCX, .BMP, .IMG, .TTE, .WML, .CSV, .HTM, .BAE, .TXT.
See ConnectionBuilder for the format of connectionString.
See Also