we are trying to print custom receipt using ImagePrintJob for clover station. But it is not printing anything though temp file is creating successfully .
Our sample code is -
1 .
InputStream is = (InputStream) new URL("http://example.com/receipt.png").getContent();
Bitmap b = BitmapFactory.decodeStream(is); PrintJob imagePrint = new ImagePrintJob.Builder().bitmap(b).maxWidth().build();
imagePrint.print(getApplicationContext(), mAccount);
2 .
PrintJob imagePrint = new ImagePrintJob.Builder().urlString("http://example.com/receipt.png").build();
imagePrint.print(getApplicationContext(), mAccount);
Please guide how to use ImagePrintJob .