Check image metadata in Oracle Forms 6.0

Hello,
I need to check if an image selected by the user in a Form has the EXIF format because, if so, I need to convert it (using an IrfanView command) before persist it in the database.
I am developing using Oracle Forms 6.0 and Oracle 9i. Do you know if there is a way to check an image metada data inside the Forms.
Thanks for answering.
David

You can also verify EXIF on client side with java (before you post image into database) (Java plugable component) ;)
some libraries...
http://drewnoakes.com/code/exif/
http://code.google.com/p/metadata-extractor/
http://jheader.sourceforge.net/
Or you can also make Java stored procedure on database side...
bye..

Similar Messages

  • How to change image resolution in oracle forms.

    Hi Experts,
    I am working on oracle forms 10g (Windows7 OS). Can we get the image resolution of an image item in oracle forms? Can we resize the image in terms of resolution?
    I have a requirement where user can upload only 1280x720 size images. Either i have to validate the image resolution and give them a message saying 'Only 1280x720 size images are allowed' or simply i have to convert the image to be upload to 1280x720 size and save in the database. If someone could give the solution for the above problem that would be very much appreciated.
    Thanks,
    Pramod SR

    1. You need to resample.
    2. You can automate the process.
    1.
    Open one of the images.
    Go to Image > Image Size
    Set the units to Percent (100)
    Change the resolution to 300 ppi (not cm!)
    Make sure Resample is checked
    2. automation
    Test the above steps to make sure it works.
    Record the steps as an action.
    Make a droplet from the action.
    Drag the folder with the images to the droplet.

  • How to check image size in oracle 9i & 10g database

    hi,
    i have inserted an Image into a table in oracle database & I want to View the Query How to check image size in oracle 9i & 10g database
    thanks
    Edited by: user8920919 on May 30, 2010 1:43 AM

    user8920919 wrote:
    hi,
    How to check image size in oracle 9i & 10g database
    thanksWhat do you mean with "image size"?

  • Image Scan in Oracle Forms 6i

    Dear all,
    I need help to scan image from Oracle Form Builder 6i and store the image location in the oracle 9i database.
    Here important issue is we just store the image location in the database not the image.
    We'll store the images in a storage device and store the location path in the database. And retrive the image from storage device using the path.
    For example: User Scan the image using Form builder 6i then save the image like 1001-DPS-1.jpg in the default location like D:\Image\.....
    And in oracle 9i database data save like : 1001 DPS 1 D:\Image\1001-DPS-1.jpg User_Name Sysdate
    Data save automatically in the database when image scanned and saved in physical drive. This is our main purpose.
    Is it possible to solve this task using Oracle 9i and Developer 6i??? Need all of your urgent help. Please help me in this regard. Thanks in advance.
    Mamun

    hi
    plz check out the following links...
    Using forms to scan an image directly into the application.
    Scan image by using Oracle Developer 6i.
    Re: How scan paper by Scanner to form 6i
    hope this helps u.
    sarah

  • Check Box item in oracle forms

    Hello experts,               I am new in oracle forms. I am using oracle forms 11g,weblogic server 10.3.5,oracle database 11g at windows 7 platform. I have a simple data block from base table.there is a tabular form is selected, It has four rows(records). Now I have to make 4 check boxes adjacent to records in data block in another data block.Now I have to make functionality in which only those records should be inserted into database table for which corresponding (in front of the record) check box is checked. Thank you regards aaditya.

    Hi,
    Commit_Form built-in function commits all the available data base fields.  So you have to use separate insert into statement to complete your task.
    Like...
    for i in 1 .. 4
    loop
         first_record;
         if :chk_box='Y' then
              Insert into <table_name>  values(field1,field2,....);
         end if;
         next_record;
    end loop;

  • Validations/checks on Navigations in Oracle Forms 4.5

    Hi,
    I am writing some validation on[b] Key-Next-Item trigger of item in Form displaying records in tabular fashion.
    Now if any error occurs ( either oracle or user defined) I want to stop further processing and focus should be on that item only.
    This is working fine ( Key-next-item) when i press tab-key But when I navigate using mouse to next item, though triggers fires ( I tried When-Validate-Item also) but focus is going to next item which I press/navigated using mouse. How should I check this validation? which kind of trigger i should use?
    Regards,
    Milind Jadhav

    Milind wrote:
    I had tried with WHEN-VALIDATE-ITEM also but even after raising RAISE
    Form_Trigger_Failure, I am not able to stop the cursor from moving it to next itemTry again. Do NOT put the code in key-next-item OR post-text-item. When-validate-item trigger is the only correct place to put field validation code.
    A typical when-validate-item trigger looks like this:
    -- When-validate-item trigger on :BLOCK1.COLUMN2
    If :BLOCK1.COLUMN2 not in ('A','B','C') then
      Message('  Error:  Value must be A, B or C');
      Raise Form_Trigger_Failure;
    End if;If what you try does not work, post the code.

  • To Calculate total while check box enabled in oracle forms.

    hi All,
    I am Using Oracle 10g forms. I have a form developed with some 15 fields in it and 10 Records in it.
    i have a field called TONS and another CHECKBOX Fied.I have a TOTAL field which is located below to TONS field.
    Now By using this TOTAL Field, i wanted to calculate TONS for records only when CHECKBOX field is enabled.if CHECKBOX field is disabled then
    TOTAL field Should not calculate the Tons field. how can i do it? Pls Help me...
    Thanks in Advance.

    If I were coding this, I would use a Calculated field to total your TONS field. Your Calculated field total would be stored in a hidden field and your checkbox code would simply assign the value from the hidden field to your displayed total field or set the displayed total field equal to null depending on the state of your checkbox.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Spell check in oracle form

    spell check is done in oracle forms by clicking a button using client_ole.
    the code behind the button is
    DECLARE
    application CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    sel_text varchar2(2000);
    var_text varchar2(2000);
    start_pos number;
    PROCEDURE Close_Word IS
    BEGIN
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    synchronize;
    END Close_Word;
    BEGIN
    application:=CLIENT_OLE2.CREATE_OBJ('Word.Application');
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO1 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info1||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO1 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    ---info2
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO2 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info2||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO2 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    --info 3
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO3 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info3||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO3 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    -- Info 4
    IF :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO4 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info4||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
         sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO4 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    eMessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    END;
    Close_Word;
    END IF;
    -- exit MSWord
    CLIENT_OLE2.INVOKE(application,'Quit');
    CLIENT_OLE2.RELEASE_OBJ(application);
    EXCEPTION
         when OTHERS then
         emessage(SQLERRM);
         raise;
    END;
    but i am getting this error. can you please tell me whats the problem.
    Exception in thread "AWT-EventQueue-7" java.lang.NoClassDefFoundError
         at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Edited by: user565034 on Jul 14, 2009 11:59 AM

    Your code works for me in Forms 10.1.2.3 and JRE Java Plug-in 1.5.0_15 with IE 7 ...
    I am also using jacob.jar 1.8 ....
    Why do not you try what I did ? Use the webutil demo form to test basic OLE functionality first ... then add your code to the Form ... that should test your webutil configuration ...
    http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
    Let me know how that goes ...

  • Interactive Images via Oracle Forms

    I have succesfully migrated to Oracle 10g and I would like to incorporate images interactively via Oracle Forms. I've considered accomplishing this task by way of using SVG, but I would like to know if Oracle has a product of its own? And has anyone successfully integrated this concept via Oracle forms?

    Hi Frank,
    SVG is a very nice thin client technologie and there are a lot of good open JavaScript libraries for it.
    I wish a JavaScript API to and from Forms applets to interact with this SVG graphics ..
    The new Oracle MapViewer generates also SVG maps.
    Regards
    Friedhold

  • How can i use Oracle intermedia with Oracle forms 9i

    Hi all,
    I have a requirment from one of our client that they want to manage a large amount of Images,by seeing the documents about the oracle interMedia we got some idea to manage this images ,but the client is alredy having a software which is been developed by Oracle forms9i and we need to develope this using oracle forms9i can anyone give us an idea that how can we make use of InterMedia through Oracle forms9i ....
    Thanks in advance....

    I am also trying to use interMedia objects with Oracle 9i forms. I've tried everything and I can't get it to work.
    So far I have a solution that loads images using WebUtil into a blob field in Forms 9i, then in a backend stored procedure I move the blob to an interMedia object. Which works, but the problem with the image item in Oracle forms is that the image format cannot be change at runtime, so the images will always be what you set at design time.
    Can someone out there please help.
    Thanks.
    Ray

  • Display blob file with oracle forms

    I need to display an image file with oracle forms.
    can any body tell me how to do this ?
    Thanks

    How to do this is dependent on which version of Oracle Forms you are using. Please let us know what version (eg; 10.1.3.x.x not 10g) of Oracle Forms you are using and how your application is deployed (Client/Server or web). If web, what is your Java version?
    Craig...

  • Displaying TIFF images in Oracle Forms 6i

    Hello, friends!
    I am working in Oracle Forms 6.0.8 (that ancient tool) and encounter a problem with displaying TIFF images.
    I have a number of scanned images and some of them are displayed and some are not. I've tried both extracting them from the database or from the file system (using READ_IMAGE_FILE). Sometimes I am getting just blank field in my image item and sometimes (after using READ_IMAGE_FILE) I get the error FRM-47100 (cannot read image file). Of course I've checked that all the files are displayed using standard tools for displaying TIFFs.
    Basically the question is what kind of TIFF is considered valid and readable by Oracle Forms.
    Analyzing TIFF tags actually gave me nothing: I have a pair of files with tags different only in image width/length and a number of rows/strip (but even those values are close), and one of the file is displayed correctly while the other is not. The thing I noticed is that invalid files are using compression type of CCITT Group 4.
    Possibly Oracle Forms follows TIFF specification only to certain extent and does not support all the extensions, while sometimes the problems are not visible to user.
    As a result of my work I need some automatic tool that converts undisplayable TIFF files to displayable ones but firstly I am to determine where the problem is. And it would be very good to have a prooflink that approves my decision.
    Looking forward to any help! Thanks in advance.

    Thanks to everybody, but I'm afraid my files don't contain any EXIF tags (although TIFF seems to support them). The file doesn't contain any tags with IDs greater than 0x7FFF but only core TIFF tags (with IDs of lower numbers). Moreover I have a file with exactly the same set of tags (but the values are a bit different) which is displayed properly.
    I've shared the issued file (nondisplayable) on the following link: [https://rapidshare.com/files/3137807470/2.tif]
    If anyone could tell me why isn't it displayed in Forms I would be very grateful.

  • Oracle forms 6.0 Image storing and retrieval

    Hello to all,
    Iam new to oracle forms, Iam using oracle forms 6.0, i was trying to insert the image into database using blob datatype.. i was continuously getting lot of error...
    Can any one give a sample application for inserting and retrieving the images. If it is a .fmb (form), i would be very thankfull to you.....'

    Mr. manvar khan, can u plz send me this fmb file for inserting and retrieving images in forms 6.0, i would be very grateful to you.
    [email protected]

  • Inserting dynamic images to excel using oracle forms 6i

    HI All,
       I'm working in project to export data from a table, one of the column has images (Blob). I need to export the data to excel.
       How can I do it?
    Thanks

    Use OLE Functions.
    http://codingwithpassion.blogspot.com/2011/02/plsql-forms-word-and-excel-manipulation.html
    Features of OraOLEDB
    ole - Oracle Forms using OLE2 not saving Excel document on 3-tier setup - Stack Overflow
    Tx

  • Problem with Image IO jre on Oracle Form

    I'm using PJC to run my Text Editor program from Oracle Form. The Editor has an Image drag & drop option and I have to upgrade the jre with Image I/O API for this functionality. To upgrade jre the tool 'jai_imageio_1_0_01-lib-windows-i586-jre' needs to be installed. When I upgrade jre with this tool and run my program independently from Oracle Form, it runs well but when I run this right there from Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages that are part of that tool even though the Oracle Developer's jdk is upgraded with this tool. Could anyone help me resolve this problem?

    Hi,
    This is a JDeveloper help forum, the Formsforum can be found at Forms Now you might think that Forms developers don't understand Java well enough, they do however understand teh Forms context and this is important to answr the question.
    a) Which Java version does your ben require?
    b) Are you using JInitiator or JavaPlugin (Jinitiator only supports Java 1.3)
    c) Is your PJC signed? Note that running an app stand alone as a Java app does not require special grants. Running it within a JavaApplet - as Forms is - does execute teh bean in a security sandbox, for which reasons the jar file must be signed and the public key be available in the Forms certdb.txt file (assuming Jinitiator)
    d) An exception stack trace gives more information than "Oracle Form it doesn't run and exception is thrown on javax.imageio and other packages", which is meanlingless to me and others. Teh stack trace canbe copied from teh JInitiator console
    I recommend resending this question to the Forms forum
    Frank

Maybe you are looking for