I have spent many days to find an answer for this but still couldn't. I have a Xamarin cross platform app and what I need, is to print Barcode from a Bluetooth printer.
I used ZXing.Mobile to generate the barcode as a MemoryStream. It is a dependency injection and it works fine.
MemoryStream stream = new MemoryStream();
stream = (MemoryStream)DependencyService.Get().ConvertImageStream("C442871452");
Now I have a barcode image in Memory Stream. I have implemented another dependency service for printing. It can print text and work well.
Now the question is how to print MemoryStream image?
I bought the Bluetooth printer from alibaba.com
Appreciate it if someone can share some codes.