I am working on midlet which works with contact list and i need to show a contacts photo (if there is any).

I iterate through PIMItem item :

byte[] imagedata = item.getBinary(Contact.PHOTO, 0);
imagedata = Base64.decode(new String(imagedata));
Image img = Image.createImage(imagedata,0,imagedata.length);

but this doesnt work, i tried more than ten different vcf files which contain photo.
So my question is, do i have a wrong vcf files or there is mistake in the code ?

(WTK 2.5.2 / Nokia SKD, eclipse 3.4, eclipseme plugin)
Thank you !