"image is not a Android.Graphics.Bitmap object" Error - ZQ520 & Link-OS for Xamarin Android

I'm trying to store an image on a ZQ520 Printer, using Xamarin Android as follows:

                var image = ZebraImageFactory.GetImage(bitmap);

                printer.StoreImage("E:FOO", image, bitmap.Width, bitmap.Height);

But I'm getting an exception "image is not a Android.Graphics.Bitmap object".

I've no idea why this is the case as the image is a valid JPEG.

Any ideas are welcome

Anonymous (not verified)
Hi Ciaran, Can you share your

Hi Ciaran,

Can you share your instantiation of the "bitmap" object?

The ZebraImageFactory takes two types of objects, an Android Bitmap, or a string file path to a bitmap, jpeg, png and several other file types.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Ciaran Byrne
Thanks Robin,I resolved this

Thanks Robin,

I resolved this issue by saving the image to a file first as suggested, and then loading it by file path.

The image is storing and printing now

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments