Image item problem

Hi, i have one problem.
I have form and image item, when i load image to this item *.bmp (true color 24 bit), its look all ok, but when i navigate to others record or do save, after i navigate back the image what i put before and what i see now is look little different. Cant you help me, whats is wrong?
Thank you

I have found problem.

Similar Messages

  • Problem Populating Image Item From Database

    Hi All,
    I am using Oracle 9i & Forms 6i on Windows platform & working in client/server model. I created a form in which, I am reading an image file from the file system & then saving it into the database. In the Databse, i created the column as BLOB. But, when I query, this does not retrive the saved image in Image Item. But image is actually saved. When I tried, changing the database column to LONG RAW, it is working. I mean its reading the image in the image item from the database.
    Can anyone pls tell me, is there any problem like this, as we can retrive from LONG RAW but not from BLOB, or I am missin something here.
    Regards

    Hi,
    I use Forms 6i to save and retrieve image in BLOB column without problems.
    Some weeks ago, my column was long raw and I update it without problems. Nothing to do in Forms and juste modifiy query and recompile in Reports.

  • Problem w/ image item using 9i BLOB field and InterMedia ORDImage Object

    Hi,dear all,
    I have a problem with image item in Form 6i. Oracle 9i is used as backend DB, and a table contains image data is created for testing:
    create table image_test(
    id number,
    image blob
    In Form 6i, there is no problem to create a block for inserting/updating the image record into the database. However, it can not be used to retrieve image (blob field), the image item remains empty after 'execute query', while the id field can be retrieved. When the same table is created in Oracle 8.1.7, and the exact same form can be used without any problem both in inserting and retrieval. It seems that the Oracle 9i does not use the same way to store BLOB column. Has anybody ever encountered this problem? How to retrieve image (BLOB) in Form 6i from Oracle 9i?
    I tried to use interMedia ORDImage as the data type in Oracle 9i, that is,
    create table image_test(
    id number,
    image ORDSYS.ORDImage
    Same problem, the form can insert record with image, but when retrieving, nothing displayed. Anybody could help! Thanks in advance!

    hi!
    well working with oracle8i and form6i.
    same problem..but i used (instead of blob or clob as datatype..) Long raw..
    it can be saved as usual..i mean Commit..
    and can be retrieved..using Execute_Query..its working fine..
    well if anybody get any other solution..do inform..
    mail_id:
    [email protected]

  • Problems with image items

    In a form (version 6.0) I have a database block with 3 image items, referencing 3 blobs fields of one record. Three buttons which use read_image_file to read data from a user selected file and put it on every item. It works out when every image item is filled in with every image, or when the form commits with no image items modified, but, if you change for instance only the second image item, it is displayed fine but when the information is retrieved you can see it was saved into de first item!, and the second one is empty, the third one has its valid image. Another example: if the third is changed, it will appear in the first one, the second item remains the same, and then the third one appears to be empty. One more: If the first and third item are modified, then after retrieving the data the first has its image, the second one takes the image from the third one and the third one is empty.
    So, it seems it always “move” the information at commit time from the first item filled in, to the first item not filled in, or to the first item that become empty after another previous “movement”.
    I have tried this with an almost empty form, with no triggers and nothing but the 3 image items, the 3 buttons, and the commit button.
    Can anyone help me please?
    Thanx.
    every button code follows (changing to bImg2 and bImg3 for the other two buttons):
    declare
    path     varchar2(1024);
    begin
         path := get_file_name;
    if path is not null then
         read_image_file (path, null, 'bk.bImg1');
    end if;
    go_item('navigableitem');
    synchronize;
    end;
    the commit button has this:
    commit_form;
    execute_query;
    the block has a fixed default where in order to retreive one record to test all this. As you can see there is nothing else, it is a very simple form.
    :)

    Z, search Metalink for bug 804091. IMAGE ITEMS SAVED TO NEW BLOB COLUMN FOR IMAGE ITEM, QUERIED BACK TO WRONG ITEM.

  • Problems displaying image in image item

    Hi,
    I have some tiff images on filesystem. which i sucessfully loaded into the database and are stored in blob column, thru SQL*Plus. when i tried to view these images in image item on my form, some of them doesn't show up. i checked the the length of the blob column, to see whether the image is actually loaded into the database and i found that the length is greater zero(infact very high). then i tried to load the image, which doesn't show up, from forms by read_image_file, neither it loads the image nor it displays an error.
    iam using oracle8i database and forms6.0.
    any help is greatly appreciated.
    regards,
    Krupal.

    thanx feng,
    i have tried to load the images thru forms into the database by using read_image_file. but some of the images are not showing up in the image item. i seriously doubt there is something wrong with the image file itself. the image files are in tiff format but saved with an extension .000 file for some reasons. now i doubt that all that images are not tiff files, some of them may be of some other type. bcos when i tried to save one of them as a tiff file it took more space than what it was earlier. after saving as tiff file the form loads the image successfully. is there anyway way that i can load the image in whatever form it is? or is there any way to convert automatically these images to tiff format?

  • Forms 6i - display into image item picture stored in blob type on database

    hi to all
    i searched on this forum but in don't found solution my problem.
    I created table with a column blob and i design form that insert and display image stored in database ( oracle 9i )
    i used image item type with block database based
    my version forms is
    Forms [32 Bit] Version 6.0.8.13.0 (Production)
    if i define column table like "long raw" it worked but i used blob i insert but i don't display image
    error is:
    ORA-00932: inconsistent datatypes: expected got
    thanks a lot to all
    bye

    I know, that the false forms-version (patch) gives you this errors. Try a newer patchset. For example patch 13-15 (for 9i), or 17 (10g rel. 1)

  • Apex 4.0 display image item :BLOB column returned by SQL statement

    Hello
    I'm creating an display image item in apex 4.0. The source is a BLOB column returned by SQL statement.
    When I'm issuing an sql statement like this:
       select lado.blob_content
       from   large_documents      lado
       ,        large_doc_headers    ladh
       where lado.ladh_nr = ladh.nr
       more criteriait works fine.
    When I create a function inside a package with the same query (in a cursor)
    function get_image(some parameters in) return blob
    Following in apex by:
    select get_image(some parameters) from dualI get a
    ORA-06502: PL/SQL: numeric or value error: character string buffer too smallAnybody any idea why this does not work?
    Regards Erik

    Hi Eric,
    the environment assumes varchar2-output by default, which will be limited to 32767 characters and may have problems with binary formats. You could define a blob-variable to select the value into.
    DECLARE
      l_blob BLOB;
    BEGIN
      SELECT get_image(some parameters)
        INTO l_blob
        FROM dual;
    END;
    /If you expect the BLOB-Content to be text (you should consider CLOB then), you may use UTL_RAW.CAST_TO_VARCHAR2 to convert the content. If your object is larger than the maximum varchar2 size, or you want to convert BLOB to CLOB, you might be interested in some converter like described here: {message:id=559749}
    Hope this is what you were searching for.
    -Udo

  • Image Item - Error: bad bind variable

    Hi All,
    I select a Image field from a table and set it to a Image Item in a form 10g. But I have error "Bad bind variable"
    Here is source code in my Post_query trigger:
    SELECT cust_sign INTO :dema_depo.dema_depo_sign
    FROM cust_sign WHERE custcod = :dema_depo.cust_sign_custcod;
    I would like to learn if you have any solution or document to solve my problem.
    Thanks very much for your help!
    BACH

    Dear Sir/Madam,
    I'm reading chapter 16: Working with Images - Oracle Forms Developer's Guide and found that cannot write a SELECT statement to select a a LONG RAW value INTO an image item.
    Thus, any the other way to fetch fr a DB LONG RAW value INTO an image item ???
    Many thanks!
    BACH

  • "ImageList1.Images.Item(#) = ImageList2.Images.Item(#)" produces "index" error. Help.

    I have two ListViews, displaying the contents of two ImageLists ("ImageList1" & "ImageList2"):
    (mockup)
    The goal: User checks a box on the left AND a box on the right, replacing the right-checked image with the one on the left.
    My code:
    ImageList1.Images.Item(intLeftChecked) = ImageList2.Images.Item(intRightChecked)
    But when I do this, I get the following runtime error:
    InvalidArgument=Value of '0' is not valid for 'index'.
    The index is not the problem though because:
    ImageList1.Images.Item(1) = ImageList2.Images.Item(1)
    ...gives me: InvalidArgument=Value of '1' is not valid for 'index'.
    This is my first time using the "ImageList" control, so I'm not too familiar with its eccentricities. :(
    Help. Thx.

    You are saying you want to change the image displayed in the listview, but the line
    ImageList1.Images.Item(intLeftChecked) = ImageList2.Images.Item(intRightChecked)
    changes the Imagelist. I would just load the images in the imagelist(s) once, then only change the ImageIndex property of the list item that you want to change.
    In addition, the statement assigns from right to left, not from left to right as you've described.
    How did you add the images to the Imagelists? Did you use the Form designer?
    What do the lines
    debug.print(ImageList1.Images.count)
    debug.print(ImageList2.Images.count)
    output in the output window?
    I'm not even sure whether you need two Imagelists.
    The mockup I used isn't exactly what I'm doing (which is a bit more complex). I was trying to simplify the issue and may have simplified it too much. The "Left = Right" mistake is just my bumbling fingers. :)
    What my app really does is show a fixed number of imageboxes on top (for example: playing cards) and a ListView below showing more images from a different folder (for example: the remaining cards). Both lists load their images directly from the
    computer:
    img = Image.FromFile(strPath & "Save\Card" & Format(intCnt, "00") & ".png")
    Dim myBitmap As New Bitmap(img)
    myThumbnail = myBitmap.GetThumbnailImage(32, 32, myCallback, IntPtr.Zero)
    (I believe you supplied me with that code.)
    The user can then replace one of the checked images above with one of the checked images below.
    This portion of the program works just fine:
    Thumbnails(intChecked).Image = Image.FromFile(strPath & "\Card" & Format(strCheckedItems(intCnt), "00") & ".png")
    ...but that's not enough. If I change the displayed thumbnail, I need to also need to update the "ImageList" so what's stored matches what's displayed on screen.
    ImageList1.Images.count = 80
    ImageList2.Images.count = 1   (correct, I only have one item loaded/displayed in the ListView.)
    I have two ImageLists because users can load in different icons into the "Inactive" window while leaving the "Active" list unchanged. This involves clearing ImageList2 between loads.
    Any idea what I'm doing wrong? Thx.

  • Having a image alignment problem using clearbox

    Hi,
    I'm having an image alignment problem. I cannot figure it out. I'm using the clearbox - lightbox dreamweaver widget. Using Dreamweaver CS6.
    Actual page located here. Any help would be appreciated.
    http://dirtysouthink.com/gallery/dustin2.html

    This has very little to do with Dreamweaver. DW is merely a tool to assist you in building a web site. It is purely a matter of styling (CSS).
    When I look at the structure, I see
    BODY-CONTENT (width: 490px)
         GALLERY (width: 452px)
              CONTAINER (width: 500px)
                   ITEM (width: 150px)
    From this I can deduce that:
    GALLERY will fit inside BODY-CONTENT
    CONTAINER will NOT fit inside GALLERY or BODY-CONTENT
    ITEM will fit three times into CONTAINER
    To start with, I would reduce the size of the CONTAINER so that it fits inside of its parent. Then I would adjust the width of the ITEM so that only two of them fit inside of the CONTAINER.

  • Image item in multi-record block - PLEASE SOMEONE HELP !

    Hello everyone.
    I have a multi-record block with an image item that is not in teh table, is populated in the post-query trigger with a read_image_item, from a gif file. This block is child of another block. The problem is that the first records of the block, the ones that fit on the screen, are not showing the image properly, the image appears grey, distorted. In reality, the image dont adjust to the size of the item, as it is especified in the properties. When i scroll down, the rest of records show the image perfect, but this ones still are distorted.
    Forms is 6.0.8.22.1, over oracle 9i. Thank you all in advance.

    hello
    just me what is datatype of ur image record ?

  • Image item in multi-record block

    Hello everyone.
    I have a multi-record block with an image item that is not in teh table, is populated in the post-query trigger with a read_image_item, from a gif file. This block is child of another block. The problem is that the first records of the block, the ones that fit on the screen, are not showing the image properly, the image appears grey, distorted. When i scroll down, the rest of records show the image perfect, but this ones still are distorted.
    Forms is 6.0.8.22.1, over oracle 9i. Thank you all in advance.

    hello
    just me what is datatype of ur image record ?

  • Show image item from table into form's item.

    Hi Friends,
    My problem is:
    I have 1 table with 2 cols:
    eid number
    e_pict blob.
    I created a form (block based on this table). I'm able to show any valid image file stored in disk into e_pict (declared as image item) using the built_in READ_IMAGE_FILE. and also able to save it in the table test. But if I want to do the reverse process I mean retrieve the image from table's field to the image item of form, it creates problem. I even cannot compile the post_text_item trigger of eid:
    select e_pict into :test.e_pict
    from test
    where rtrim(eid)=rtrim(:eid);
    It is giving error:
    bad bind variable 'test.e_pict'
    Pls help me.
    Regards,
    Pragati.

    If I declare the image field as long raw instead of blob then also the same problem.
    I can save the image from file to database through a form but cannot retrieve an image from database to form.
    Pls help.
    Thanks in advance,
    Pragati.

  • Calling portlet from an image item

    I have two image items and I want to call two report portlets such that If I
    click on ImageA, it should call first report portlet and If I click on ImageB,
    it should call 2nd report portlet on the same portlet reigon. I mean it should
    hide and show the two report portlets on the same page and same region. This is
    what I have done so far :-
    (1) Created a content area
    (2) Created a category
    (3) Added two image items in that category
    (4) Created two reports and published as portlets
    Any help would be much apprecited.
    Thanks

    Hi
    But the values you have given are hardcoded what if i want to capture the value on which i click and then pass it as a parameter.
    My problem is i have a chart in a dynamic page when i click on the deptno i want to call the same chart by capturing deptno and passing the value in the call to the chart as an argument.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Can you show me the PL/SQL code inside
    the dynamic page?
    Here is an example to pass params to reports
    from a dynalic page:
    <ORACLE>
    declare
    l_arg_names hzeng30.wwv_utl_api_types.vc_arr;
    l_arg_values hzeng.wwv_utl_api_types.vc_arr;
    begin
    l_arg_names(1) := '_show_header';
    l_arg_values(1) := 'NO';
    l_arg_names(2) := 'deptno';
    l_arg_values(2) := '20';
    scott.rpt_on_emp.show(p_arg_names=>l_arg_names, p_arg_values=>l_arg_values);
    end;
    </ORACLE> <HR></BLOCKQUOTE>
    null

  • Canvas or image item ?

    Hi there,
    I m trying to download an image from a web server. Everything fine till now but my problem is in choosing form-->image item or use canvas for drawing image.
    As its said horizontal scrolling is not available with forms while with canvas we need to code it. Is forms-->image item available with midp 1.0 ?
    Please advice.
    Regards.

    hi
    my advice is if u want to put or disaplay only image its better you use form (High Level API) .If you want to do formatting thats if you want to choose spcific location or add some text with Image its better you use Canvas.
    because when you use form there are number of limitation with using form that it is not able to load tha image on the location that we want .With image item it gives some layouts but no othar alternative.but this is not the case with Canvas.

Maybe you are looking for