Compare image retrieved with client_image (webutil) to images (blob) in tab

Hello,
I have the following situation:
webform loading client images into a table (using client_image package from webutil)
I want to check if this image has already been loaded or not.
If not loaded ok else reject with raise_application_error on the table's trigger.
with a before insert trigger I inserted the :new.image into a temp table. but when reading and comparing I saw that the length of the image is still 0.
Is there a way to pass the image (actual size completely) in webforms to a procedure? Because when testing this ( asigning the image field to a blob variable) I got the same result length 0?
Ho can I get around this problem?
thanks for the help
Erwin

Hello,
The Image Item is probably the most "vague" of all. You cannot have its size and you cannot get/set its content outside the read_image_file() built-in. It is a complete "black box".
Francois

Similar Messages

  • Content-based image retrieval with SQL/MM Still Image

    Hi
    With ORDIMage signature matching being deprecated in 11g, does anyone have any experience of performing content based image retrieval with SQL/MM Still Image?
    Thanks
    Brian

    The details in that thread is the only information that can be shared.
    Melli
    Oracle Multimedia

  • How do i set the transparency of an image retrieved from a database? (image was stored as blob)

    I had stored a png image into a database, when i retrieve it and display it the background is no longer transparent?
    I am loading the blob returned from the select statement by using the "loadBytes" method of the "UILoader" class.
    Thanx in advance
    gv1979

    If you want to stick with adjusting the scale you can do this two ways. Edit the value graph or edit the speed graph.
    The problem is that a camera move, a zoom or a dolly in, is not linear and scale is. This means the graphs are not a good representation of what you'll see visually. This makes them hard to use. At a constant rate for scale the appearance is that the increase in size slows down to closer you get to the final value. In other words, as you scale an object up at a constant rate, the visual appearance is a gradual slowing.
    A speed graph edited to look like this gives the appearance of a constant rate scale of the layer when you expect an acceleration at the end. There's just not enough granularity in the graph editor or enough control to predictably achieve the results you want.
    You'll have better luck editing the value graph to look something like this:
    While this looks extreme, you will get closer to achieving the results you want using the value graph. Once again, the amount of control and the resolution of the graph combined with the visual tomfoolery that scaling an object brings with it makes this a difficult way to achieve predictable results.
    You select the graph you'll edit by clicking on the second icon from the left.
    As I said before, you'll have much better luck getting the look you want if you make the layer 3D and move a camera toward it.

  • Populating multiple image fields with single user-defined image

    Hello,
    I am fairly new to LiveCycle and am looking to include a user-specified image in the header of each page of my dynamic form.
    I've succeeded in including the image form at the head of each page using a master page, but each image form only affects the page it is on. Ideally, I would like to have the user be able to select the image on one page, and have all of the image fields populate.
    Is there any way to use a script to populate the other images when the first image is selected by the user? I tried setting the rawValue of one image to that of another once the other is chosen, but had no success.
    Thanks,
    Michelle

    Thank you for the responses. I have already updated awhile ago, so I am wondering what happened. Not sure if during the server update, some files were replaced (unless I totally forgot to update to 1.0.1 on this site). So I reinstalled 1.0.1, deleted the includes folder from the server and uploaded my includes folder and it now works again.
    Again, thanks for the help.
    Jeremy

  • How to improve image resolution with using filters

    how to improve image resolution with using filters?

    image resolution, Please check the below links. They should give you a clear idea about Resizing and resampling images.
    http://helpx.adobe.com/photoshop/kb/advanced-cropping-resizing-resampling-photoshop.html#m ain_Resizing_and_resampling_images
    Understanding Resize vs. Resample | Learn Photoshop CS6 | Adobe TV
    Cheers!
    ~ Arpit

  • How can i create a .mov file from image sequence with different durations

    how do u create an image sequence with different durations? image one stays for 10 seconds and image two may stay for 30 and so on. each one has a custom duration. can this be done with an apple script or a text file saved as an mov file?

    Hello Omar,
    The example code Programmatic Printing of TestStand Reports - Modular contains a sequence that will convert an XML file to an HTML file given the XML file's path and the path to the stylesheet.  It may need to be altered to fit with the modifications you have already made to the report generation routines, but I think it should definitely get you off on the right foot.  Let me know if you have any questions!
    NickB
    National Intruments

  • How do I duplicate an image on the main screen so that I can edit it and compare the result with the original?

    In Elements 12 How do I duplicate an image on the main screen (as well as the photo bin) so that i can compare any editing with the original?

    In full Editor, go to Edit>Preferences>General and check "Allow Floating Documents in Full Edit Mode"
    Open the image so that you see it in the project bin
    Right click the image thumbnail in the project bin, and duplicate. It will come in as xxxcopy
    On the Arrange icon at the top, select 2-up. You should see the original and the duplicate in the work area

  • KM images retrieving in Applications   ----Java gurus please help -- URGENT

    Hi,
    I am retrieving images from KM in the webdynpro application and then displaying Adobe Interactive Form with the help of the blog :
    /people/bobu.georgeputheeckal/blog/2006/12/22/getting-an-image-from-km-documents-to-be-used-in-web-dynpro
    But the images i could retreive are atmost  20kb , if the size of the image is more eg : 70kb , the image is not displaying . In the code of the blog :
    //Reading the image file……
    BufferedInputStream bufIn =
    new BufferedInputStream(resourceimg.getContent().getInputStream()); *
    byte[] imagebyte = new byte[bufIn.available()];
    bufIn.read(imagebyte);
    Wile  getting BufferedInputStream object from resource object ,,,,,,,if the size is say 70KB ,,,,it is giving problem .But if the size is less say 10KB it is ok .
    Pls anyone provide me to overcome this problem and can get byte[] ,,, and can proceed further for larger images .
    Thanks and Regards,
    Srini
    Edited by: srinivasa rao on Feb 20, 2008 6:39 PM

    Srinivas,
    I think that's because the default filesize for BufferedInputStream class is 2048 bytes.
    Change your code as follows and check if it resolves your issue:-
    BufferedInputStream bufIn =
      new BufferedInputStream(resourceimg.getContent().getInputStream(), Integer.MAX_VALUE);
    byte[] imagebyte = new byte[bufIn.available()];

  • Where are APEX images retrieved from in an n-tiered environmen?

    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?
    Thank you.

    >
    Please update your forum profile with a real handle instead of "user601798".
    Oracle XE DB 11gR2
    Oracle APEX 4.1.1
    Glassfish 3.1.2
    Red Hat Linux 5.8
    ===========
    I notice when using Glassfish as part of my APEX environment I am required to copy the images to an /i directory on the Glassfish server under the Glassfish domain.
    The question arises --> When APEX needs to render an image, is the image retrieved from the database/database server or from the Glassfish web server?The answer (as usual) is "It depends".
    If you're using Glassfish and the APEX Listener (or OHS) then images referenced using <tt>/i/</tt> / <tt>#IMAGE_PREFIX#</tt> are stored on and retrieved from the web server file system. If using EPG then they're stored on and retrieved from the database using the XMLDB repository.
    If the image is referenced using <tt>#WORKSPACE_IMAGES#</tt>, <tt>#APP_IMAGES#</tt>, or declarative BLOBs then they're stored on and retrieved from the database.

  • Associating Image variants with image lookup fields

    In the console reference guide you can find the following explanation on the use of Image variants:
    "A variant defines the structure of the image but does not specify if the variant is actually required for a particular image.
    Instead, each image lookup field in the repository has a Variants property that allows you to associate one or more variants with the image lookup field, and in so doing, identify which variants should be generated when an image is associated with that particular field.
    For each variant, all the images associated with that variant will be generated according to the specifications of the variant and the crop/rotate settings stored for that image. MDM tracks the changes to the variant definitions, the variant associations, each image, and the crop/rotate settings for each image, and thus know when the variants need to be regenerated."
    My question is the following:
    Assuming that the definitions of the Image variants are made via the console and thus present in the Image variants table,...
    Is it possible to change the Variant property of the image lookup field(s) in the main table through the Java API?
    So that you could write a function that automatically associates specified Image variants with all the image lookup fields in the main table of a certain repository.
    I hope somebody can help,
    Joeri

    Did you ever figure out your problem?
    I'm trying to retrieve an image variant thru the API and always get the same error:
    <i>Error retrieving image: hr=0x80004005, ImageID=58, VariantID=1</i>

  • How to get blob image width with ordimage?

    Hello,
    I have trouble getting image width with ordimage. I have quite the same program for processing images as here: http://spendolini.blogspot.com/2005/10/manipulating-images-with-database.html
    so I have declared image files as BLOB files. How can I get the width for the them?
    There is a sample from ordimage reference:
    DECLARE
    image ORDSYS.ORDImage;
    width INTEGER;
    BEGIN
    SELECT p.product_photo INTO image FROM pm.online_media p
    WHERE p.product_id = 3515;
    -- Get the image width:
    width := image.getWidth();
    DBMS_OUTPUT.PUT_LINE('Width is ' || width);
    COMMIT;
    END;
    the ORDSYS.ORDIMAGE is used instead of BLOB here. when i do the same then i can't select BLOB content into the ORDSYS.ORDIMAGE variable. And otherwise I can't use the getWidth with the BLOB variable.
    Can anybody help please?

    Hi,
    the column blob_content is not suitable for storing into v_image2 because variable v_image2 is of type ORDSYS.ORDIMAGE and the column is BLOB.
    I used the following method instead:
    declare
    image blob;
    attributes clob;
    img_mimeType varchar2(32);
    img_width integer;
    img_height integer;
    img_contentLength integer;
    fileFormat varchar2(32);
    contentFormat varchar2(32);
    compressionFormat varchar2(32);
    begin
    DBMS_LOB.CREATETEMPORARY(attributes, TRUE, DBMS_LOB.CALL);
    select img
    into image
    from image_repository
    where id = 0;
    ORDSYS.ORDImage.getProperties(image,
    attributes,
    img_mimeType,
    img_width,
    img_height,
    fileFormat,
    compressionFormat,
    contentFormat,
    img_contentLength);
    dbms_output.put_line(img_mimeType);
    dbms_output.put_line(img_width);
    dbms_output.put_line(img_height);
    dbms_output.put_line(fileFormat);
    dbms_output.put_line(compressionFormat);
    dbms_output.put_line(contentFormat);
    dbms_output.put_line(img_contentLength);
    DBMS_LOB.FREETEMPORARY(attributes);
    end;
    try adapting this code and think about the possibility of "caching" image properties, because it takes some time to retrieve them every time.
    Bye,
    Flavio
    http://oraclequirks.blogspot.com/search/label/Apex

  • Photoshop-When opening image without tab view, image opens with only a portion in view

    I having an issue with CC.
    When electing in the preferences to not open image in Tabs. The images open with only about 25% of the image area showing. Forcing me to (command) 0 for full to screen preview or (command) +/- to see the image.
    I am not talking about seeing the image at 100% resolution just the entire image within the floating window without having to command before view.
    Sidenote: Adobe Customer Service is all based in India. I spent 4 hours on the phone only to hear that this is that way photoshop works.
    There would be no logical explanation for this. Since the first version of Photoshop this has not been the case.
    I think this should be called view porn with wife in the room mode. Other than that I see no point.
    Can anyone help?
    Lv
    Chadwick Tyler

    Moving discussion to Photoshop forum.

  • Image processing with imaq vision with 2 webcams on the same computer

    Hi,
    I'm currently trying to set up 2 usb webcams (logitech quickcam for notebooks pro). I want to be able to have them both run simultaneously and do some image processing with the images that I get from both cameras with labview and imaq vision.
    As of right now, I'm having trouble getting both cameras to run at the same time. Any help would be gladly appreciated. Thanks.

    The USB IMAQ driver will not support running 2 USB cameras at a time (I believe it is a limitation of the DirectShow interface). You could open one camera, acuqire an image, close the reference to that camera and then do the same for the second camera.
    If you need simultaneous acquisition, look at possibly moving to 1394 cameras or analog cameras.

  • Image processing with BLOBS: how to write BufferedImage to a BLOB

    Hi everybody - thanks in advance for any input on that topic.
    I'm doing image processing using AWT and 2D. Images are stored in a RDBMS as BLOB Type, which I get using JDBC and convert to a BufferedImage using a JDBCImageDecoder.
    Now, I have my BufferedImage and I can process them using the appropriate filters (ConvolveOp e.g.)
    Writing the BufferedImages to disk or display on screen is easy. But I can't get to write them to a BLOB Object. Any Hint ?
    (Of course, I'm speaking of oracle.sql.BLOB objects, not java.sql.Blob).
    Thanks and have a nice day

    Billy,
    Thank you for your answer. I have two questions.
    First what that means "Bob's your uncle ?" I'm a french man, not used to english special sentences ou jargon. Would enjoy to know !
    Second, I have created a PL/SQL procedure to update my table. I face a problem.
    I want to initialize b_lob with the img_blob value but I get an error : "ORA-22922: nonexistent LOB value". WHere do my error comes from ? I am fairly new in this stuff of BLOB.
    Below my procedure.
    Thank for your kind help.
    Christian.
    create or replace
    procedure insert_img as
    f_lob bfile;
    b_lob blob;
    loops number default 0 ;
    lines number default 0;
    stmt varchar2(4000);
    cursor c1 is select img_blob, file_name, pk from photos FOR UPDATE ;
    begin
    NULL;
    dbms_output.enable(900000);
    stmt := 'SELECT COUNT(*) FROM PHOTOS';
    EXECUTE IMMEDIATE stmt INTO LINES ;
    for ligne in c1 loop
    exit when loops >= lines ;
    loops := loops+1;
    update photos set img_blob= empty_blob() where CURRENT OF C1;
    -- return img_blob into b_lob;
    b_lob := ligne.img_blob ;
    f_lob := bfilename( 'MY_FILES', ligne.file_name );
    IF (DBMS_LOB.FILEEXISTS(f_lob) != 0)
    THEN
          DBMS_OUTPUT.PUT_LINE('BFILE exist: '|| ligne.file_name || ', ligne :'|| ligne.pk);
          dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
          dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
          dbms_lob.fileclose(f_lob);
          dbms_output.put_line('ligne.pk :' || ligne.pk || ', lines : ' || lines || ', loops ' || loops);
      ELSE
        DBMS_OUTPUT.PUT_LINE('BFILE does not exist: '|| ligne.file_name || ', ligne :'|| ligne.pk);
      END IF;
    end loop;
    commit;
    end insert_img;

  • Unable to load google images properly with FF 24.0 on Android 4.1.2 on Samsung Tab 7.7.

    the correct image is not being shown, and images are being overlaid when I select an image after a Google image search. I am running the latest version of Firefox for Android (v24.0) my Gt-P6800 Samsung Galaxy Tab 7.7. Is this a common fault/bug? I can't use FF for images as a result.

    Hi, thank you for your reply, but this is one on the first things I tried. With further investigation, I am now experiencing the same problem with Opera mobile. However, I don't get the problem with the built in web browser or chrome. I am up to date with Android for my tablet, and I have the latest version of Firefox. This means that I am on the verge of dispensing with Firefox as it's virtually unusable for Google images.

Maybe you are looking for