FileUtilSendFileContents Method (String)
|
Sends the contents of a file to the device.
Namespace:
Zebra.Sdk.Device
Assembly:
SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax void SendFileContents(
string filePath
)
Sub SendFileContents (
filePath As String
)
void SendFileContents(
String^ filePath
)
Parameters
- filePath
- Type: SystemString
The full file path (e.g. "C:\\Users\\%USERNAME%\\Documents\\sample.lbl").
Exceptions Exception | Condition |
---|
ConnectionException | If 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