Re: [android-developers] Retrieve Contact Photo type

2010-08-30 Thread Pedro Elvas
Hi Carlo, Take a look in the source code of JPEGImageReaderSpi and PNGImageReaderSpi (j2se). These classes have a met

Re: [android-developers] Retrieve Contact Photo type

2010-08-30 Thread Kostya Vasilyev
In case you don't find one, PNG files always start with: \211 P N G \r \n \032 \n http://www.libpng.org/pub/png/spec/1.2/PNG-Rationale.html#R.PNG-file-signature -- Kostya 30.08.2010 18:58, sazilla пишет: Hi guys, is there any way to retrieve the data type of a contact's photo? (e.g. "image/

[android-developers] Retrieve Contact Photo type

2010-08-30 Thread sazilla
Hi guys, is there any way to retrieve the data type of a contact's photo? (e.g. "image/png" or "image/jpeg") Using the Contacts Provider I can read the photo byte array only. In this case can we get the image type from the image stream? Thanks in advance Carlo -- You received this message beca