Click or drag to resize

FileUtilSendFileContents(String, ProgressMonitor) Method

Sends the contents of a file to the device.

Namespace: Zebra.Sdk.Device
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
void SendFileContents(
	string filePath,
	ProgressMonitor handler
)

Parameters

filePath  String
The full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.lbl").
handler  ProgressMonitor
Callback to update on progress
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an issue communicating with the device (e.g. the connection is not open).
Remarks
Note: If the file contains data which will trigger a response from the printer (e.g. JSON formatted settings), this method will not clear the response from the buffer. This may cause subsequent method calls to fail unpredictably. Clear the read buffer of the connection manually by calling Read() if this is applicable.
See Also