How to get information of an image without using MediaStore?

All your problems with Audio, Video and Images.

How to get information of an image without using MediaStore?

Postby quanganh12 » Thu Jul 15, 2010 11:13 am

Hi everybody, I spent many days to find out how to get the information of an image without using MediaStore database such as Datetaken, description... But all the ways I tried it didn't work. Could someone help me?
I'm totally new to this.
quanganh12
Freshman
Freshman
 
Posts: 5
Joined: Wed Jul 14, 2010 10:19 am

Top

Re: How to get information of an image without using MediaSt

Postby blundell » Thu Jul 15, 2010 1:34 pm

I think you MIGHT be talking about the header data that its supplied with jpegs?
If so you can get some java help here:
http://www.drewnoakes.com/code/exif/
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: How to get information of an image without using MediaSt

Postby quanganh12 » Fri Jul 16, 2010 3:56 am

Thank for your help! I already used ExifInterface in Android API. But that only applies for JPEG, how can I do that with PNG file?
quanganh12
Freshman
Freshman
 
Posts: 5
Joined: Wed Jul 14, 2010 10:19 am

Re: How to get information of an image without using MediaSt

Postby blundell » Fri Jul 16, 2010 8:33 am

Go you not know how to use google lol?

http://www.w3.org/TR/PNG/#4Concepts.AncillInfo
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: How to get information of an image without using MediaSt

Postby quanganh12 » Fri Jul 16, 2010 5:50 pm

blundell wrote:I think you MIGHT be talking about the header data that its supplied with jpegs?
If so you can get some java help here:
http://www.drewnoakes.com/code/exif/

This one is used for J2SE, not for endroid:D
quanganh12
Freshman
Freshman
 
Posts: 5
Joined: Wed Jul 14, 2010 10:19 am

Re: How to get information of an image without using MediaSt

Postby blundell » Fri Jul 16, 2010 5:59 pm

I didn't mean to be lazy and use the API , the website merely links to the source code and other resources to enable you to code this yourself into an application with probably half the memory footprint of a pumped up J2SE API.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Top

Re: How to get information of an image without using MediaSt

Postby quanganh12 » Mon Jul 19, 2010 8:35 am

OK. Many thanks for your help. :D
quanganh12
Freshman
Freshman
 
Posts: 5
Joined: Wed Jul 14, 2010 10:19 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 4 guests