Hi Carlo, Take a look in the source code of JPEGImageReaderSpi <http://www.docjar.org/html/api/com/sun/imageio/plugins/jpeg/JPEGImageReaderSpi.java.html> and PNGImageReaderSpi <http://www.docjar.org/html/api/com/sun/imageio/plugins/png/PNGImageReaderSpi.java.html> (j2se).
These classes have a method called canDecodeInput that checks if an inputstream is a png or jpeg (respectively). []s On Mon, Aug 30, 2010 at 11:58 AM, sazilla <[email protected]> wrote: > 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 because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

