FileUtilLinkOsGetObjectFromPrinterViaFtp(String, String) Method
|
Retrieves a file from the printer's file system via FTP and returns the contents of that file as a byte array.
Namespace: Zebra.Sdk.DeviceAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax byte[] GetObjectFromPrinterViaFtp(
string filePath,
string ftpPassword
)
Function GetObjectFromPrinterViaFtp (
filePath As String,
ftpPassword As String
) As Byte()
array<unsigned char>^ GetObjectFromPrinterViaFtp(
String^ filePath,
String^ ftpPassword
)
Parameters
- filePath String
- The absolute file path on the printer ("E:SAMPLE.TXT")
- ftpPassword String
- The password used to login to FTP, if null, a default password ("1234") will be used.
Return Value
ByteThe file contents.
Exceptions 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.
NOTE: This method retrieves files over a network protocol and hence will only work over a TCP connected
printer with FTP enabled. If ftpPassword is not provided, a default will be tried.
See Also