I'm sending a byte array to a bluetooth socket and I get a response from the bluetooth printer, but I'm not getting a correct sending acknowledgement for image data.
I write the byte array to outputstream
the following way:
byte[] queryData = new byte[]{
0x1B, 0x2A, 0x43, 0x41,
0x00, 0x00, 0x00, 0x00,
0x01, 0x27, 0x5E,
0x01, 0x00, 0x00, 0x00, 0x00
};
outputStream.write(queryData);
outputStream.flush();
Is there any other way to write binary data to outputstream
?
I'm stuck and opened to any suggestion.