Click or drag to resize

PrinterUtilGetObjectFromPrinterViaFtp Method (Stream, String, String, String)

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: 2.14.1989
Syntax
public static void GetObjectFromPrinterViaFtp(
	Stream destination,
	string connectionString,
	string filePathOnPrinter,
	string ftpPassword
)

Parameters

destination
Type: System.IOStream
Stream to receive the file contents.
connectionString
Type: SystemString
The connection string.
filePathOnPrinter
Type: SystemString
File to retrieve. (e.g. "R:MYFILE.PNG")
ftpPassword
Type: SystemString
Password to use for ftp, if null a default password will be used.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an error connecting to the device, or the ftp password is not correct.
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