This should be easy ;O) How do I read the exif info in a JPG file?

Hey all...
I have been googling this for awhile now with not much luck.
!st... Hi... I am a Flex AS3 newbie....  but... not a programming newbie...
My learning project is to create my photoart gallery as a Before and After gallery. Part one is a Flex/Air app to gather the images, scale them to consistant display and thumbnail sizes and build and edit XML data files for the images and galleies. I have actually gotten most of that done..
I am currently working on editing the XML files for the image information (photographer info, copywrite info, descriptions, gallery...etc.) and pulling in as much information that I can find in the image file itself. That being EXIF data.
I have found a couple of examples but for the XResolution and Yresolution I just keep getting 72dpi... now the Jpg files that I am using from my camera.. when I look at the properties with Windows XP... it say 300dpi... when I load the image in Photoshop and look at image size it says 300dpi.. in Photoshop if I look at file information the EXIF says 300dpi....
How can I access that data with Flex/AS3????? After all this is "Adobe" Flex Builder...
This just seems like it should have been solved ages ago... Please.. point to the right path  ;O)
I have searched this forum and have found one or two EXIF references, but no answers.
Thanks for any guidance on the subject.
Bob Galka

Jean-Pierre
Thanks very much for your quick response.
One last point and we should drop this in favor of other more urgent issues we both ahve to deal with.
The data is coming from a comma delimited (CSV) file using a comma ',' and optional quotes (") as field separators.
The first column of 'good' data is read as an INTEGER EXTERNAL because of course it is a number. However, the 'bad' rows I want to eliminate have character text in them where I would normally find numbers and they all start with 'D','M' or 'S'.
I don't have an actual column in the data file or resulting table definition that represents that first character that I'm trying to test on. Hence my use of (1) to reporesent the 1st character of data on the line regardless of whether its numeric or character.
As I stated, the syntax works fine in SQL*Loader when I typed the WHEN clause in manually.
I guess if there was a way to define a pseudo column that could be defined using the POSITION notation and everything else using the variable length delimited notation I could test on that psuedo column. I don't want the pseudo column to appear in my resulting table so that seems to be an issue. Enough.
Since I've worked around it using external tables for this issue I'm not going to spend any more time on it today.
As usual, many thanks for your help.
Have a great day! I'll be back soon with another issue :-)>
Gary

Similar Messages

  • How do i remove the exif metadata from my jpg file produced with a digital camera photo?

    How do i remove the exif metadata from my jpg file produced with a digital camera photo?

    The excellent and free utility Irfanview has the option to remove the EXIF data.
    Simply open and the file and do a Save, or Save As with the original name.
    Surprisingly, the default is to not keep the original EXIF data.

  • This should be easy! How can I change the background colour of my fields?

    Apologies if this has already been posted but nothing has come up via Google nor the Forum search.
    I'm sure this should be easy but it's really doing my head in!
    I have a number of textboxes, dropdown lists, etc within my form - I have set Custom backgrounds on each which are visible within Design View. However, in Preview PDF all the fields have a default blue colour and only change to my Custom backgrounds when you enter the field.
    Is there a way of removing the default colouring of fields so that it's the same as my Custom backgrounds? My Custom backgrounds are 'linear to bottom' so I don't want to just set border.fill.color to one colour.
    Thanks for any help,

    Hi,
    If you include this Javascript in the docReady event of the root node (default "form1").
    app.runtimeHighlight = false;
    This will turn off the field highlight. It doesn't prevent the user from turning back on the highlight, but it will mean that your form opens with the highlight off.
    Hope that helps,
    Niall
    Assure Dynamics

  • How to read the EXIF metadata from a .jpg file

    hi,every one
    Photos which are captured by a digital camera, have some parameters, such as the exposure time,ISO speed rating,camera model,focal length etc.
    How to read this parameters???

    Is it listed in the IIOMetadata?
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.metadata.*;
    import org.w3c.dom.*;
    public class IIOMetaDataExample {
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
            Iterator readers = ImageIO.getImageReadersBySuffix("jpeg");
            ImageReader reader = (ImageReader) readers.next();
            reader.setInput(ImageIO.createImageInputStream(url.openStream()));
            IIOMetadata metadata = reader.getImageMetadata(0);
            displayMetadata(metadata);
        public static void displayMetadata(IIOMetadata metadata) {
            String[] names = metadata.getMetadataFormatNames();
            for(int i=0; i<names.length; ++i) {
                System.out.println();
                System.out.println("METADATA FOR FORMAT: " + names);
    displayTree(metadata.getAsTree(names[i]), 0);
    public static void displayTree(Node node, int indent) {
    indent(indent);
    String name = node.getNodeName();
    System.out.print("<" + name);
    if (node.hasAttributes()) {
    NamedNodeMap attrs = node.getAttributes();
    for(int i=0, ub=attrs.getLength(); i<ub; ++i) {
    Node attr = attrs.item(i);
    System.out.print(" " + attr.getNodeName() + "=" + attr.getNodeValue());
    if (node.hasChildNodes()) {
    System.out.println(">");
    NodeList children = node.getChildNodes();
    for(int i=0,ub=children.getLength(); i<ub; ++i)
    displayTree(children.item(i), indent+4);
    indent(indent);
    System.out.println("</" + name +">");
    } else
    System.out.println("/>");
    static void indent(int indent) {
    for(int i=0; i<indent; ++i)
    System.out.print(' ');

  • How can I remove the white background of a JPG file?

    When I paste a JPG file into a document, it includes the white square background. The image is round and I want to get rid of the white corners. How do I either import the image without the background square, or make the white part transparent?

    >How do I either import the image without the background square...
    Can't be done with a JPG.
    >...or make the white part transparent?
    You can use a clipping mask.
    Do you have Photoshop?
    Please tell us your Illustrator and Photoshop versions.

  • How to display the Get info window for a file or folder

    Hello,
    How can I display the Get Info window for a file or folder using Applescript - instead of selecting it in the finder and using Command-I ?
    Thanks.
    lenpartico

    The item property that the Get Info was opened for is read only, so it doesn't look like you can just throw a file path at it. You could do something like telling the Finder to reveal the item, then keystroke the command, e.g.:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder"
    reveal "Path:to:your:file"
    activate
    end tell
    tell application "System Events" to keystroke "i" using {command down}
    </pre>
    ... but this doesn't seem to be much different than the regular method. There are other methods to get various information, what are you wanting to do?
    Edit:
    Hmmm, I could have sworn (I do a lot of that these days) I tried Hiroto's method, but that does work. It still seems to be a roundabout way of doing something though.
    Message was edited by: red_menace

  • My old Apple ID is on my iPhone, but this has been transferred to a new Apple ID.  The iCloud on my phone is requesting the password for the old Apple ID, but this no longer exists.  How do I update the iCloud Apple ID on my iPhone?

    My old Apple ID is on my iPhone, but this has been transferred to a new Apple ID.  The iCloud on my phone is requesting the password for the old Apple ID, but this no longer exists.  How do I update the iCloud Apple ID on my iPhone?  When I try to get the old passwork through forgot my password, the reply is that there is no account that exists. 

    Try the following....
    Go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  Then log in using a different ID.

  • The back button no longer works. I have disabled all add-ons, rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    the back button no longer works. I have disabled all add-ons,rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • I want to delete songs from iTunes Match by unchecking them in my iTunes library on my Mac. Is this possible? If so, how do I change the necessary setting(s) in iTunes or iTunes Match?

    I want to delete songs from iTunes Match by unchecking them in my iTunes library on my Mac. Is this possible? If so, how do I change the necessary setting(s) in iTunes or iTunes Match?

    I have seen this page, but it seems that this involves deleting songs from my iTunes library in order to remove them from iTunes Match. I want to keep them in my iTunes library, but not in iTunes match (I am over my limit for songs in iTunes Match, and would like to decide which songs to keep in iTunes Match).

  • I fainted and fell while holding my iPad and the screen cracked; it still works fine. It's just cracked. I have had this iPad for less than a year so it is still covered under warranties. Does this apply? If not how much to fix the screen?

    I fainted and fell while holding my iPad and the screen cracked; it still works fine. It's just cracked. I feel horrible, it was a gift from my brother. have had this iPad for less than a year so it is still covered under warranties. Does this apply? If not how much to fix the screen? Please help

    If you want a short list of third party repair options, here you go.
    iPad Repair & Screen Replacement Services
    http://www.ifixyouri.com/16-ipad-repairs
    RepairZoom iPad Repair
    http://www.repairzoom.com/ipad-repair.html
    Mission Repair
    http://www.missionrepair.com/Apple_iPad_Repair_Services_s/431.htm
    iGadgetResQ
    http://www.igadgetresq.com/ipad-repair/

  • Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    Since I upgraded to IOS5, my Smart Playlists are in a random order. Since I use it for listening to Talking Books this makes it useless. How can I control the order of a Smart Playlist?

    It may be best to recreate the folder and the smart playlists from scratch.
    tt2

  • EyeConnect says my Samsung 40D8000 'can access this computer' ... but how to I get the TV to access the Mac?

    EyeConnect says my Samsung 40D8000 'can access this computer' ... but how to I get the TV to access the Mac? 
    All I want to do is to have the new TV connect to iPhoto, and if possible, iTunes, on the Mac and although there are plenty of forums discussing problems (such as FF and RW not working) all I want to do is basically CONNECT!
    The Samsung AllShare tool is not seeing the Mac, the Mac is 'seeing' the TV in the EyeConnect setting box (but not in Finder).
    Please help me to get these two guys talking!!!
    Tim

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you let iTunes manage your music:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Start iTunes with the option (shift on Windows) key held down and guide it to the new location of the library.

  • My MacBook Pro shows the "Macintosh HD" icon on the desktop but my MacBook Air does NOT have the icon on it's desktop.  Is this normal?  If not, how do I remount the MacBook Air disk icon on the desktop?

    My MacBook Pro shows the "Macintosh HD" icon on the desktop but my MacBook Air does NOT show the icon on it's desktop.  Is this normal?  If not, how do I remount the MacBook Air "Macintosh HD" icon on it's desktop?

    Is it showing in the Finder?
    If so, then this is normal.
    Cheers,
    GB

  • How do I change the copyright info and links in collection pages?

    Can anyone tell me how I can change the copyright info and links on a collection page using the new updated Public Site Manager?
    1. When I click on 'Configure selected collection' there doesn't seem to be an option to edit copyright information and I've tried editing the info in Settings > Copyright Notice but it doesn't filter through to the collection pages.
    2. When I click on 'Configure selected collection' the links tab is empty but on my collection page there is a link called 'website' which links to our University website but the url is incorrect so I need to change it.
    Example screenshot -
    Thanks

    Also when I add a url list to a collection page and then delete all the links I'm left with a blank url list showing in preview page in iTunes. This should not happen, the admin guide says -
    "To delete a collection page URL list, delete all the links in the list. When you publish, if you have a URL list with no links, iTunes U Public Site Manager hides the empty URL list."
    It doesn't. At least it doesn't for me when I preview the collection in iTunes.
    Example screenshot

  • Found an locked iphone5c, how can i get the owners info, email or anything if he/she only says "pls. bring back my phone.. godbless" on the activation menu??

    found an locked iphone5c, how can i get the owners info, email or anything if he/she only says "pls. bring back my phone.. godbless" on the activation menu??

    Try using Siri and ask "Who's phone is this?" It should give you the name, number, and email address of the owner. Also, you can try swiping to unlock, select Emergency, then see if they have a Medical ID set up. If they do, they may have the name of a contact with a phone number listed.

Maybe you are looking for