Skip to content

sendBinary

Description

Sends binary data to the printer without any conversion.
By sending printer commands as raw binary data, functions that are not supported by the library can also be used.
However, commands that require a response from the printer are not supported by this method.

Syntax

public void sendBinary(byte[] data) throws SIISLP800PrinterException

Parameter

data

Specify the binary data as a byte array.
The maximum data size that can be sent at one time is 3 MB (3,145,728 bytes).

Sample

val data: ByteArray = byteArrayOf(0x0C)

try {
    printerManager.sendBinary(data)
} catch (e: SIISLP800PrinterException) {
    Log.d("MyApp", e.getErrorCode())
}