Reading JPEG metadata

Is it possible to read the metadata from an imported JPEG or a JPEG selected with Image Field during execution?

It is possible to get quite a bit of information from imported files via DataObjects, but I can't seem to get my existing description/metadata/EXIF data. Below is a code snippit showing that path and size work correctly but description does not.
'Code for Get Data Object Button Click
var myDoc = event.target;
var count = 0;
var sFile = "myFile" + count;
myDoc.importDataObject({cName: sFile});
var myDataObject = myDoc.getDataObject(sFile);
var sFileName = myDataObject.path;
count = count + 1;
'Code to display each attached files name/size on Button Click
var myDoc = event.target;
var d = myDoc.dataObjects;
for (var i = 0; i < d.length; i++)
    app.alert("Data Object[" + i + "]=" + d[i].path + "    and the file size is: " + d[i].size);
    app.alert(d[i].description); 'Does not work to pull metadata/EXIF   

Similar Messages

  • Reading .jpeg files in FILE or FTP adapter

    Hii
    I have to send .jpeg files at regular intervals using BPEL.
    I read about Base64 data type. I tried to create File Adapter and FTP adapter. I specified the folder location and *.jpeg as file pattern. I have made schema to opaque.
    But neither File or FTP adatper are picking up the file from specified directory. As per my plan, once I will get Opaque schema in BPEL, I will use Base64 encoding to get the data as string and to pass it to the endpoints.
    Any idea what I need to do in order to read .jpeg files.
    Any help is highly appreciated.

    Thanks for the help. Actually, I am following the similar process as given in "Tutorial 11 : File DB Integrations – Handling of opaque data types".
    I'm using SOA Suite 10.1.3.3; the .jpeg file is being picked up by the File Adapter, but failing to create BPEL instance with the following log details :
    +"<2009-03-06 17:02:13,053> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.engine.delivery.CorrelationResolutionException: Correlation definition not registered.+
    +The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
    +Please try to redeploy your process to the process domain.+
    +]+
    +ORABPEL-03802+
    +Correlation definition not registered.+
    +The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
    +Please try to redeploy your process to the process domain."+
    I have deployed the process multiple times on two different SOA Suite Server 10133, but getting the similar logs. The file is being picked up but not generating BPEL instance.
    Any idea ???

  • How do I read the metadata of an object in abap?

    I need to find a way to read the metadata of an object (say an internal table) in abap.  An example of what I am looking to do is that I want to get a list of all the column names of an internal table.  Any help would be greatly appreciated!
    Dustin

    Sure, use this function.
    TYPES: BEGIN OF type_item,
           f1 TYPE char30,
           f2 TYPE char30,
           f3 TYPE char30,
           f4 TYPE char30,
           END OF type_item.
    DATA:  lineitems TYPE TABLE OF type_item WITH HEADER LINE,
           fieldlist TYPE TABLE OF rstrucinfo WITH HEADER LINE.
    DATA:  syrepid TYPE sy-repid.
    syrepid = sy-repid.
    * gets all of the components of a structure
    CALL FUNCTION 'GET_COMPONENT_LIST'
      EXPORTING
        program    = syrepid
        fieldname  = 'lineitems'
      TABLES
        components = fieldlist.
    LOOP AT fieldlist.
      WRITE:/ fieldlist-compname .
    ENDLOOP.
    Regards,
    Rich Heilman

  • Adding/Reading XMP Metadata in a psd file

    Hi,
    I'm having some troubles to understand how to add and read XMP metadata on a psd file. I followed the Panel developer guide tutorial, and try to look on the internet for some answers, but I'm still stuck ...
    Here is the simple example I'm trying to make (using part of the code from the panel developer guide) :
         The function loads the XMP Script Library.
         @returns True if the XMP Script Library was loaded successfully.
         @type Boolean
    function loadXMPLibrary(){
         if ( !ExternalObject.AdobeXMPScript ){
              try{
                   ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
              }catch (e){
                   alert("Can't load XMP Script Library");
                   return false;
         return true;
         The function unloads the XMP Script Library.
    function unloadXMPLibrary(){
         if( ExternalObject.AdobeXMPScript ) {
              try{
                   ExternalObject.AdobeXMPScript.unload();
                   ExternalObject.AdobeXMPScript = undefined;
              }catch (e){
                   alert("Can't unload XMP Script Library");
        Try to put a new property into the metadata
    if( app.activeDocument || !loadXMPLibrary()){
        var xmp = new XMPMeta(activeDocument.xmpMetadata.rawData);
        xmp.setProperty( XMPConst.NS_EXIF, "myProperty", "test" );
        activeDocument.xmpMetadata.rawData = xmp.serialize();
        unloadXMPLibrary();
        Window.alert(activeDocument.xmpMetadata.rawData);
    I don't really know where I'm wrong, could you help me please ?
    Thanks,
    Julien

    Rather mess with EXIF and Dublin Core namespaces, wouldn't it be better to create your own?
    IE:
    #target photoshop
    addtoMeta();
    function addtoMeta(){
    if(!documents.length) return;
    if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData);
    var myNamespace = "http://my.fantastic.newspace/";
    var myPrefix = "nsfns:";
    XMPMeta.registerNamespace(myNamespace, myPrefix);
    xmp.setProperty(myNamespace, "myProperty", "A Test String");
    app.activeDocument.xmpMetadata.rawData = xmp.serialize();

  • How to read the metadata in the SWF ?

    Hi,
    Is there anyway to read the metadata which we are adding to swf as a file info in the Publish Settings.
    I just want to know that, this metadata added to the swf header ?
    Thanks.

    Hi
    look at this thread your problem is solved here
    File Adapter
    Regards
    Abhishek
    Edited by: Abhishek Agrahari on Dec 16, 2008 11:37 AM

  • 'Read JPEG File.vi' does not seem to work on PXI with real-time OS

    I am trying to read a jpeg file on a PXI system with LabVIEW real-time on it. To test I created a very simple VI (attached) with only 4 objects: 'Path' --> 'Read JPEG File.vi' --> 'Draw Flattened Pixmap.vi' --> 'Picture'.
    This VI works fine on my Windows XP host machine, but it does not work on the PXI system. The error code 1 occurs in 'Read JPEG File.vi'.
    The jpeg picture is in the same directory as the VI. I don't think I got the path or filename wrong because if I change the file or path name I get another error: 7: 'File/Directory Info in Check Path.vi->Read JPEG File.vi->test.vi'.
    Maybe reading jpeg files is not supported on realtime systems? I could not find anything about it. Sol
    utions or workarounds are of course welcome!
    Attachments:
    Test_Read_JPEG.vi ‏23 KB

    'Read JPEG File.vi' is not supported on LabVIEW RT. I believe it has to do with special functions or libraries need to be called due to the JPEG image type. Instead you can use a Bitmap and the 'Read BMP File.vi', which I believe is completely implemented in G code.
    Keep in mind that the RT System doesn't really have a front panel and that the front panel is only 'available' when LabVIEW is connected to the target such as being targeted or having a remote panel to it. Generally, a deployed RT system doesn't have a UI and just communicates to a Host VI which acts as the UI. Having said that, the BMP file worked when I tested.
    Regards,
    JR A.

  • Unable to read report metadata

    I have a report from SSRS2008R2 in user in PP2007 which works there properly.
    When I try to use it in PP2010 I get "Unable to read report metadata" every time I try to change the default value of the parameters.
    In PP2007 it all works properly.
    thanks

    After analysing network traffic, I found that Report server returns an error to dashboard designer because a parameter is set as "read only".
    This means that there is a parameter that has been set to internal in the report.
    The important thing is :
    Note: Publishing a report over an existing report on the report server does not overwrite the parameter information.
    To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information for the report in Report Manager.
    To modify the parameters information, open the report server. Go to your report, and select Manage, then Parameters ( on the left panel).
    Internal parameters appears with unselected textbox for Hide and Prompt. Select Hide and then Apply.
    Go back to Dashboard designer, you can now update the parameter values.
    Regard,
    Franck

  • Read file metadata

    Is there a way to read file metadata in LabVIEW?  If I was looking at an executable and wanted to retrieve the version number (that shows up when you look at the file's properties in windows), how would I do it in LabVIEW?
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

    Here ya go,
    This should do the trick for you.
    Message Edited by Chris_VH on 03-30-2009 05:36 PM
    Chris Van Horn
    Applications Engineer
    Attachments:
    exeversion.jpg ‏18 KB

  • READ JPEG FILE.VI

    Hi,
    I am using Read JPEG File.vi to read the image file. The VI behaves differently when I login into my system (windows XP) as user and differently when I login as Administrator. When I login as user and provide the path of the jpeg file (70kb) it trough’s an error code 1.where as same thing works fine when I login as Administrator. For small Jpeg files (3-20kb) it works fine in both the login as. I am attaching the VI and the some jpeg files for your reference. Any suggestions would be greatly appreciated!
    Regards,
    Sathyendra N
    Attachments:
    code&jpg.zip ‏196 KB

    Hello Sathyendra,
    I ran your VI and could read your images without any error... the images seem not to be locked for any kind of account (user, admin, etc...) so I don't know what's wrong.
    Have you tried to use the "file info" function instead of "read jpg" ?
    Try to run this VI and see what happens, maybe resetting access right would help...
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    file.vi ‏33 KB

  • Read infotype metadata

    Hello,
    We're building a custom (portal) view for editing PA infotypes. We configured IT metadata through transaction PM01 -> Edit Field Characteristics (Cust. Table).
    Now we would like to read this metadata for dynamically detmermine which fields are mandatory, read-only or unused. This metadata appears to be stored in the T588MFPROPC table.
    What is the standard method or FM to read this metadata?
    Thanks in advance

    Thanks!
    It works only for a given field, but that's fine.
    Edited by: Mathieu Scialom on Dec 7, 2010 3:35 PM

  • How to read XMP metadata of an indd file using Actionscript

    Hi All,
    I am trying to read XMP metadata of an indd file using CS Extension Builder in Flash Builder 4.5.
    The documentation has many class like XMPmeta, XMPStruct, etc.
    I have got the currently opened document in InDesign as follows:
    var myDoc:Document = InDesign.app.activeDocument();
    And a new XMPmeta object is created as follows:
    var myXMP:XMPMeta = new XMPMeta();
    How to initialize document's xmp metadata in the XMPMeta object? Or is there any other way to get the XMP metadata of currently opened document in InDesign?

    I have found that the XMP data of an InDesign document can be retrieved in actionscript as follows:
    InDesign.app.activeDocument.metadataPreferences
    This returns the MetadataPreference object.
    But I am not able to iterate each namespace in the xmp. There isn't any XMPFile class which allows me to serialize the object to xml file so that I can iterate all elements in the XMP.
    I could not relate class like XMPMeta, XMPProp, etc. with the MetaDataPreference class. So, how to obtain the entire xmp packet from the MetadataPreference object?
    Can anyone shed light on this?

  • Error in reading BW Metadata / Initial Forecast data

    We are in the process of creating a PoC in SPP (Service Parts Planning).  After carrying out basis settings in SPRO, we tried to getinto Interactive forecasting, when we were stopped by the following errors.
    Error reading BW metadata
    Error when reading initial forecast data
    Can any one guide on how to resolve this..
    Rgds
    TRR

    Hi TRR,
    I am also facing the same message when I try to do interactive forecasting in SPP.
    error reading BW metadata
    Did you get a solution for this? Please let me know.
    Many thanks in advance
    Sooraj

  • Help! Content generation error. [Error: Unable to read JPEG.]

    Hey all -
    Havben't seen this one in the forums. I'm importing an article into an existing folio. The processing status bar goes to the end, but before upload starts, I get this error:
    Content generation error.
    [Error: Unable to read JPEG.]
    Any idea how to troubleshoot this? I'm up against a hard deadline and really need to get this worked out. Thanks!

    In that case it would be good, if the error message could be more specific; i.e. telling the name(s) of the JPEG images.
    However, you could check all placed JPEG images, if they can be opened with PhotoShop.
    Uwe

  • Reading photo metadata on phone?

    How can you read the metadata information for pics taken with the iphone (iOS4) while on the iphone itself? even something as simple as "date taken" would be helpful. thanks.

    You need a third party app like this:
    http://itunes.apple.com/us/app/exif-iptc-metadata-browser/id383576492?mt=8
    You can search for others.

  • "rainbow colors" problem in reading JPEG's

    Hi!
    I am having a problems when trying to read jpeg-images.
    This works:
                FileInputStream stream = new FileInputStream(imageFile);
                JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(stream);
                BufferedImage image = decoder.decodeAsBufferedImage();But I need to use this approach, which sometimes produces strange colors:
            javax.imageio.ImageReader reader = getReader("jpeg");
            reader.setInput(ImageIO.createImageInputStream(inputStream), true, true);
            ImageReadParam param = reader.getDefaultReadParam();
            BufferedImage image = reader.read(0, param);The problem is that colors in some images read look like rainbow colors. I found that images saved by Photoshop are ok, but other images (straight from cameras or edited edited with Nikon viewer) are not.
    I think that this issue might be related to color model, but I do not know what to do. I really would like to get some help, even minor suggestions are wellcome.

    This is windows specific. You can't do windows specific stuff using Java unless you use some native library.
    My suggestion: forget about my documents and use your own directory. Most applications use a directory such as '.APPNAME'. For example netbeans uses a directory '.netbeans' . That way your app is cross platform.

Maybe you are looking for

  • Multiple iphones using one itunes account

    I'm fairly new to the itunes world and was wondering about the ability to sync multiple iphones to a single itunes account. I have the iphone 4s and have it synced with my itunes account...my boyfriend recently left the dark ages and is now using my

  • Adobe Media Encoder: Finished .flv file doesn't show in finder

    I was working with Media Encoder, converting a 37-minute 8GB file into a .FLV, and while the program will go through all of the steps (no error messages, video shows in preview window, progress bar fills all the way) when the conversion is finished t

  • Java to uml

    can someone recommend a free java to uml plugin thanks miki

  • How do you change the fuse in a UK Apple 5w USB Power Adapter?

    How do you change the fuse in a UK Apple 5w USB Power Adapter? Ours has stopped working and we presume it must be an internal fuse, but how do you access it as there is no 'slots' as on the 12w version? All UK power devices must be fused to comply wi

  • Recursive eval in jsp/java ?

    hi - i have a simple jsp that uses a bean to go to the database and grab content to be displayed on the webpage. the problem is that the content in the database itself has some java scriplets in it which are not evaluated since the jsp was already be