How to manage image in a column of a table

Hi all,
I am using Jdeveloper 11.1.1.2 and ADF faces.
I would like to have a table with a column to save an image. After that I would like to have a page .jspx that visualize the fields of the table, including the image.
I would like to know how I have to do:
1) in the database to save the image
2) to visualize and manage images on my .jspx page
I have read something on the forum and googling, but I have found threads of one-two years ago, and I don't know if they give to me the right solution for my version of Jdeveloper.
Can you give me a step by step procedure to solve my problem? Do you have any links to suggest me?
Regards
Andrea

We did a web app a while ago and used image files for warehouse to show images of parts
1. BLOB
2. We didn't use adf. also I am using 10.1.3.4.

Similar Messages

  • How to Insert Image in a Column of a table

    Hi
    I have read several documentations but still could not find any relevant one that can help me in inserting a image in a BLOB column of a table.I have read about DBMS_LOB but still not clear how to insert an image in the table.
    I followed following steps :
    create table Emp_Identity(Id Number,Photo BLOB);
    Insert Into Emp_Identity(1,'d:\vishal.bmp');
    Please tell me steps to be followed.
    Regards
    Vishal Chaudhry
    null

    I am using Developer 2000 Forms 6i as Front End (Oracle 8.1.6)
    My table structure is:
    SQL> desc test_lob
    Name Data Type
    ID NUMBER
    NAME VARCHAR2(100)
    PHOTO BLOB
    SOUND BINARY FILE LOB
    IS there any way to display the BFILE contents on the frontend.....?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by vishal chaudhry ([email protected]):
    Hi,
    I could actually insert an image in a BLOB type column from the backend(Sql plus) not directly but by using BFILE and see that image on the frontend (Forms 6i Developer 2000,Item type is Image as there is nothing like BLOB/BFILE in front end) using the following procedure :
    IS there any way I can insert an image directly in a BLOB column from the backend rather than using BFILE?
    CREATE OR REPLACE PROCEDURE loadLOBFromBFILE_proc IS
    Dest_loc BLOB;
    Src_loc BFILE := BFILENAME('SOUND_DIR', '123w.bmp');
    ** SOUND_DIR is a logical directory created by giving path of the server
    ** Create Directory SOUND_DIR as 'd:\u020\o816\ctx\test'
    ** d:\u020\o816\ctx is the physical path of the server \\pslndb\ctx$
    ** test is the dummy testing directory created on the server
    ** 123w.bmp is lying in the test directory
    Amount INTEGER ;
    BEGIN
    Amount := DBMS_LOB.GETLENGTH(Src_loc);
    SELECT photo INTO Dest_loc FROM test_lob
    WHERE ID = 1
    FOR UPDATE;
    /* Opening the source BFILE is mandatory: */
    DBMS_LOB.OPEN(Src_loc, DBMS_LOB.LOB_READONLY);
    /* Opening the LOB is optional: */
    DBMS_LOB.OPEN(Dest_loc, DBMS_LOB.LOB_READWRITE);
    DBMS_LOB.LOADFROMFILE(Dest_loc, Src_loc, Amount);
    /* Closing the LOB is mandatory if you have opened it: */
    DBMS_LOB.CLOSE(Dest_loc);
    DBMS_LOB.CLOSE(Src_loc);
    COMMIT;
    END;
    <HR></BLOCKQUOTE>
    null

  • How to show icon in a column of a table?

    How to display an icon in a column of a table UI element and this icon is to be displayed based on values in the table row?

    I normally use a calculated attribute inside the table's data source node for this.
    Add an attribute "Icon", type=string, calculated=true, read-only=true, under the data source node.
    (If the data source node uses structure binding and does not allow to add an attribute, add a helper value node instead, cardinality=1:1, selection=1:1, and add the attribute to this node.)
    In the get-method for the calculated attribute, you get the node element corresponding to the table row as parameter. Depending on other attributes in this node element, select an icon URL and return it.
    If you put your icons inside the src/mimes/<component> folder, you can simply return the file name of the icon.
    Don't use a Button as table cell editor but rather an Image or LinkToAction.
    Armin

  • How to add description of a column of a table in SQL Azure

    Hi
    I have some tables in my application database where there are descriptions added against certain columns. Needless to say they were done by using sp_addextendedproperty.
    Now I am trying to migrate the Database to SQL Azure. SQL Azure does not support sp_addextendedproperty.
    Hence I am not able to figure out how to add descriptions to those columns.
    Any help would be much appreciated.
    Thanks
    Soumyadeb

    Hello,
    Just as Latheesh post above, Windows Azure SQL database are not support extended stored procedures. That’s one of the limitations on SQL database, and I don’t know there is another way to achieve the same on Azure.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to get the selected rows & columns in the table?

    hi everybody,
                         In my application the table is kept inside the event structure.I select the cells  in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?

    Hello,
    You can fill selected values of the table by writing to it or the corresponding property using a property node - the table is just a 2D array of strings.  I think for your "disable" question you are referring to the shortcut menu (when you right click).  If you are using LabVIEW 8.x, you can edit or disable that shortcut menu - just right click on your table at edit time and choose Advanced >> Run-Time Shortcut Menu.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How to grey out one single column in a table control of TPMOE

    Hi Experts,
    Any body please tell me how to greyout a single column in a table control of TPMOE.
    Help needed ASAP.
    Thanks,
    sreenivas.

    lr_result      TYPE REF TO if_bol_bo_property_access
    lr_iterator TYPE REF TO if_bol_bo_col_iterator
          CALL METHOD lr_iterator->get_by_index
            EXPORTING
              iv_index  = index
            RECEIVING
              rv_result = lr_result.
          CALL METHOD lr_result->get_property_as_value
            EXPORTING
              iv_attr_name = 'TRANSFER_STATUS'
            IMPORTING
              ev_result    = lv_status.
    if  lv_status = x and component = cost_category.
    rv_disabled = true.
    else.
    call super.
    endif.
    INDEX will have the row number.
    Frame ur logic based on this.

  • How to find the frequently updated columns in a table

    Hi ,
    I need to find out all the columns of a tables which are frequently getting updated.
    is there any way that I can achieve this ? I am not sure if any meta data information for DML operations exist in Oracle 9 i. Any input is welcome.
    Thanks in Advance !!

    Thank u , i am thinking the same, Thanks for the suggestion.
    any other idea.... like is there any system table which we can query to get details about these dml operations on a table ?are there any kind of system audit tables in oracle where these get recorded ?

  • How to find out the NULL columns in the table?

    Hi,
    Please provide the query to find the null columns in the table. Here, all rows in the table have same column as null. It won't change.
    Table
    c1 c2 c3 c4
    X C 10
    T D 20
    I wanna find out as C2 is the nullable column.
    Thanks in advance !!
    Regards,
    Vissu....

    Below code might be solution for finding NULL valued in columns in a table and if it is solution .kindly give me points for the same.
    declare
    cursor col_cur is
    select column_name
    from user_tab_cols -- all_tables can also be used in case the table is present in own schema
    where table_name = 'TABLE_NAME'; --provide the TABLE_NAME  
    stmt varchar2(1000):= '';
    v_count number;
    count_null number;
    begin
    execute immediate 'select count(*) from TABLE_NAME' into v_count; --provide the TABLE_NAME  
    for rec in col_cur loop
    execute immediate 'select count(*) from TABLE_NAME' where --provide the TABLE_NAME  
    '||rec.column_name||' IS NULL' into count_null;
    if count_null = v_count then
    stmt :=stmt|| rec.column_name ||chr(13);
    end if;
    end loop;
    dbms_output.put_line(stmt);
    end ;

  • How can I find number of columns in a table using a query

    Hi
    I want to find the number of columns in a table using a query.
    Any help in this regard is much appreciated.
    Cheers

    Hi,
    This is the output i get when i executed ur query
    OWNER     OBJECT_NAME     OBJECT_TYPE
    SMLDBO     T2311_SURVEY_QUESTIONS     TABLE
    select OWNER,OBJECT_NAME,OBJECT_TYPE
    from all_objects
    where OBJECT_NAME = 'T2311_SURVEY_QUESTIONS';
    works Fine.
    But if i use the below query it returns : 0
    SELECT count(*) FROM user_tab_columns
    WHERE table_name =upper( 'T2311_SURVEY_QUESTIONS');
    What could be problem.
    The table exists + name of the table is correct + it resides in my schema itself.
    Any guess !!!

  • Using ODBC how do you identify a calculated column in a table?

    I've a calculated column in my table. Is there a way to identify that column through ODBC functions? I need to identify the  calculated column and make it read only. The function should support both SQL and Access databases. Please let me know if
    there is a way to find out this column type.

    Hello,
    You can refer to the following article which list some ODBC Scalar Functions which you can used in the T-SQL query statement.For example
    SELECT {fn TRUNCATE( 100.123456, 4)};
    -- Returns 100.123400
    Reference:http://msdn.microsoft.com/en-us/library/bb630290.aspx
    As per my understanding, there is no built in declarative support for read-only columns. You can try to create a UPDATE trigger to achieving this. Or you can create a view with derived column  from the source table. And then users cannot
    update this calculated column on the view.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How can i find number of columns in a table ....... it's higer priority

    hi
    i wnat find the number of columns in a table.
    is there any predefine fiunction. pls tell me

    Thanks for correction!
    I asked myself that question after posting previous post... started to search in Documentation but you were faster.
    Thanks again!
    Message was edited by:
    Faust
    Edit:
    Dear thread users!
    You have here (in my post in this thread - see above) good example for inappropriate post in one thread.
    I posted to fast - I didn't realise am I sure what I wrote!
    Consequence was that, after posting, I asked myself is it correct my statement about rights on SYS-objects, I started to search for answer, etc.
    So what I want to say is: if you don't want to find yourself foolish, like I found myself, don't post before you are sure is it correct what you wrote!
    Cheers!

  • How to display images from BLOB column via APEX 4.0

    Hello,
    I did the following in order to display images of two Oracle records on the APEX page. I am using APEX Version : 4.0.1.00.03 , Oracle DB Version : 10.2.0.4.0.
    1. Created An oracle table TEST_FORM
    with 3 columns
    ( ID number, MIME_TYPE varchar2(255) , Image BLOB )
    2. Inserted two records
    10001, image/gif, ( actual image1)
    10002, image/gif, ( actual image2)
    3. created an Oracle procedure
    CREATE OR REPLACE PROCEDURE show_my_form ( p_image_id IN test_form.id%type) AS
    l_mime test_form.mime_type%type;
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc test_form.IMAGE%type;
    BEGIN
    SELECT mime_type, IMAGE
    , DBMS_LOB.getlength (IMAGE)
    INTO l_mime, lob_loc, l_length
    FROM test_form
    WHERE id = p_image_id;
    owa_util.mime_header(l_mime, false);
    htp.p ('Content-length: ' || l_length);
    owa_util.http_header_close;
    wpg_docload.download_file (lob_loc);
    END show_my_form ;
    4. In Apex 4.0
    step1. Created an interactive report on a new APEX page
    step2. Specified the following in the Region Source
    select id, mime_type, '<img src="#OWNER#.show_my_form ?p_image_id=#ID#" />' photo
    from TEST_FORM
    The column result shows as <img src="CCS.show_my_form?p_image_id=#ID#" />
    I am unable to display the column image as a link to a proper image photo.
    Could you please advise me if I missed anything ?
    Thanks a lot.
    Regards
    Susanna
    Edited by: user10318332 on 13/12/2010 15:51
    Edited by: user10318332 on 13/12/2010 20:10

    Maybe the space you have before the ? is causing issues. there shouldn't be any space.
    Your procedure looks to be much the same of one that I have.
    Have you granted execute on your procedure?
    Also, what version DB are you running? This could be another issue: http://daust.blogspot.com/2006/04/xe-calling-stored-procedures.html
    But anyway, you don't need to create your own procedure these days. You could do the following:
    in your query, have a column: dbms_lob.getlength(blob) photo ; save, then in column attributes for that column, apply a format mask. There is usually a link below the text box for the format mask - BLOB Download Format Mask, which will help you build the format mask. But it is documented here: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/advnc.htm#BCGGJHEF
    Ta,
    Trent

  • How to manage image without save it on db

    dear all,
    my goal is don't store image into db but only save the path that ponit to them in a db tupla.
    Is this achievable?
    Thanks in advance
    kind regards
    carmelo Pace

    Yes. You can either create a BFILE type (which is just a pointer to a file on the file system) or you can store the path in a VARCHAR2 column.
    Of course, with either solution, updates of images will not be transactional and you'll have to ensure that the data in the database remains synchronized with the data on the file system (i.e. if an image is deleted from the file system, you'd have to delete the corresponding row(s) from the database, if there is a failure and you restore a backup, you'd have to restore the file system backup at the same time.
    Justin

  • How to Update the oracle toad column value in table by using SSRS 2008

    Hi Team,
    How to update the oracle DB table column value by using SSRS 2008.
    Can any one help me on this.
    Thanks,
    Manasa.
    Thank You, Manasa.V

    Hi veerapaneni,
    According to your description, you want to use SSRS to update data in database table. Right?
    Though Reporting Services is mostly used for rendering data, your requirement is still can be achieved technically. You need to create a really complicated stored procedure. Pass insert/delete/update and the columns we need to insert/delete/update as
    parameters into the stored procedure. When we click "View Report", the stored procedure will execute so that we can execute insert/delete/update inside of the stored procedure. Please take a reference to two related articles below:
    Update Tables with Reporting Services – T-SQL Tuesday #005
    SQL Server: Using SQL Server Reporting Services to Manage Data
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How does Toggle Visible for a Column in a Table work ?

    Hi All,
    I have a question for you.
    Using version 11.1.1.7:
    I was playing with a use case where I need to show and hide columns in an af:table component.
    I want to do this clientside using javascript.
    Guess what: It works, however, it only works for hiding columns ?!
    Initially I have client component = true and visible is true.
    See javascript below.
    When I call hideColumn, the component is found and hidden after calling.
    When I call showColumns (after it is hidden) the component cannot be found anymore.
      function showColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(true);    
       function hideColumn(evt){
          var col = AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9")  ;
          col.setVisible(false);    
        }I checked and when the columns visible property is initially false, the column is not found by AdfPage.PAGE.findComponentByAbsoluteId("pt1:pc1:t1:c9"), which means it is not available ?!
    It looks like the visible property for an af:column works slightly different then for other components such as buttons.
    Also makes me wonder how the panelCollection component shows and hides columns. Doesn't that component do exactly the same ?
    Thanks.

    Luc,
    couldn't find a hint in the sources (maybe didn't spend enough time). However, one reason for this behavior would be if the hidden column had no client component created (in which case it only exists as hidden HTML). The work around I think would be to use a serverListener on the table and to pass the columns to show/hide as the payload for server side show/hide
    Frank

Maybe you are looking for

  • Next Thinkstation wish list

    Hi folks, Lenovo is pretty innovative stuff, I think we can all agree As the Thinkpad is "inspired by customers", let's see if we could try and inspire Lenovo's system builders for the next generation of Thinkstation's to come, no doubt pretty soon g

  • Download pictures from Sony Ericsson quick share to a PC. Can somebody tell me how to do this?

    I have a Sony Ericsson quick share phone and want to download the pictures to a PC. I donot have infrared, no datacable and I see and cannot find a memorycard ( with pictures) Can anybody tell me what to do?

  • Intermittent error on x86 chip set: Cannot validate provider JSDP

    <p>Hello,</p> <p> I am experiencing an intermittant issue on an X86 chip set machine running Solaris 10. </p> <p> I have statically registerd the JSDP provider with the jre used by WLS by adding it to the java.security file: security.provider.8=com.e

  • Input Controls pane - How to force Input Controls pane to visible on WebI?

    We are planning to distribute WebI reports to our users. The reports would be scheduled daily and the users would get  an email containing a hyperlink to the Webi report. Upon clicking, the hyperlink it would  launch the WebI and refresh data to the

  • Partitioning Strategy Help

    I am specifically looking for recommendations on why/when to partition both my data and indexes. We are trying to eak out more performance from our 350gb database. We have the data and indexes partitioned using the same partitioning ranges (6 partiti