Ordimage in ADF11g

Hi,
I have worked on BLOB image not shows in JSP page!! image retrival and currently I need to help how to view ordimage in my jspx page.
If anyone had compiled such program can you please give me a reference that how can I do that by ADF11g.
Note that I had created ADFbusiness components by ORDIMAGE table now need to show this image.
I had found a guideline but here not fully described about servlet implementation.
As seen in oracle site that ORDIMAGE supports in ADF11g but not found such solution.
I will be glad if any one can help me
Thanks
zakir
=====
Edited by: Zakir Hossain on May 10, 2009 5:38 PM
Edited by: Zakir Hossain on May 10, 2009 5:39 PM

solved by as reference of BLOB and will post ASAP.

Similar Messages

  • Diff b/w bc4j model and ejb model in adf11g

    hi all,
    iam murali iam new for adf 11g i have some dout's in adf11g ,can u please solve my probleam
    what is the difference b/w bc4j componet and ejb componet,how to develop ejb application in adf11g.

    ,how to develop ejb application in adf11gTake a look at this tutorial for starters:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html

  • How to build a report on a table containing ORDSYS.ORDIMAGE type?

    Hi
    I build a table with a column of type ORDSYS.ORDIMAGE then I
    build a form using wizard and populate the table by uploading
    intermedia type and I can make query on that form and see the
    image. But when I build a report using wizard, the report result
    shows image data as it is in text format.
    Am I doing something wrong or there is another way to make
    report on ORDSYS.ORDIMAGE column type.
    Thanks.
    bye

    This could be because, you might have the display type as text
    instead of html for this column.
    Could you pls verify this by selecting as html and try running
    the report. If it still not working then pls post your Portal
    Version so that we can verify it out here. Presently, it is
    working fine for me.
    Thanx,
    chetan.

  • How can I display some OrdImages using a Applet in html or Jsp?

    hi
    I want to use a applet to display some images retrieved from intermedia OrdImage Object.
    Now ,I know that a applet can display some image objects or some images with their own filepaths. But we can get ordimag objects from Oracle database.And we can image data or image properties by ordimage java mathod. It is in html/Jsp environment. So how can I transform from ordimage to applet?? I appreciate someone who can help me!
    Bill

    Do you mean applet or Servlet?
    An Applet is java code that is downloaded over the web and runs in a web browser environment. Is this what you are doing?
    I suspect you are really talking about servlet/JSP environments, and the ability to include images from the database in a web page.
    In either case (applet or servlet), you want to be able to access images via a URL. For a Servlet/JSP/web page, this URL will be specified in a HTML <IMG> tag with a key as a parameter to the image you wish to view. Images are not in-line downloaded in a web page. They are access after the HTML is loaded, and are accessed with URLs, sometimes relative URLs rather than fully specified URLs.
    To deliver images to the web from the database using the PL/SQL gateway and iAS, where the procedures are generated by a wizard, see:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/imedia_code_wizard.html
    You can create a simple servlet (JSPs can not deliver binary data) that delivers database images using java classes. See:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/servlets_jsp.html
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    for a sample.

  • Ordimage performances big issue, please help

    Hi, we are developing a visual retrieval application based on Intermedia.
    The Database is Oracle 10g (10.1.0.4)
    The Database is a RAC(Real Application Cluster) running on 2 Servers
    The storage is a 2TB SAN
    Each server is a quad-CPU (Itanium 2, 3GHz) with 8GB of ram each, the OS is Windows 2003 Server 64-bit Edition
    one table of the db contains the ordimagesignature objects, we created a tablespace for the table itself and 2 other tablespace, one for the ordsignature filter and one for the ordsignature index.
    This is the creation script for the index:
    CREATE INDEX APP_IMG_SIGNIDX ON APP_IMG
    (SIGNATURE)
    INDEXTYPE IS ORDSYS.ORDIMAGEINDEX
    PARAMETERS('ORDImage_Filter_Tablespace=TPC00F,ORDImage_Index_Tablespace= TPC00I');
    TPC00F and TPC00I are 1GB each.
    the tablespaces TPC00F and TPC00I are stored in the SAN and are dedicated only to ordimage data.
    The table contains almost 300K rows.
    Running a query like this (and no other activities on the server):
    SELECT a.id_img, ORDSYS.imgscore (123)
    FROM app_img a, app_img b
    WHERE ORDSYS.imgsimilar (a.signature, b.signature, 'color="0.20" texture="0.80"', 5, 123) = 1
    AND b.id_img = 2377165
    ORDER BY ORDSYS.imgscore (123) ASC;
    Can take from 3 to 7 minutes, depending on the ordimage parameters I choose.
    This is obviously an unacceptable time for the hardware we have. Monitoring the performances of the machine during the execution of the query, shows that the CPU is almost idle while the IO queue is almost at 90% for all the running time of the query. We also tried altering the table with the command:
    alter table app_img parallel (Degree 8);
    but the execution time is the same.
    ANY help would be very well accepted, thank you in advance.
    Best Regards, Stefano

    Have You still problem with the performance ?
    I'm facing the same performance problems, i'm just testing a small amount of images from a big database. I have loaded (only) 5500 images into table, and generated signatures for them.
    i have created a ORDSYS.ORDImageIndex on the signature, and analyzed that to.
    After loaded > 2000 images the performance going down, and with (only) 5500 images
    i get time on queries with IMGSimilar between 20 - 30 sec. . . .
    ps, the total amount of images in the database is over 5 millions, bu tonly 5500 in table img_ordimage (so far)...
    Oracle version : 10g Enterprise Edition Release 10.1.0.4.0 - 64bit Production
    OS : SunOS storea 5.9 Generic_118558-30 sun4u sparc SUNW,Sun-Fire-V210
    the, output from tkprof:
    oracle@storea 10:24 ~/admin/storedb/udump >cat tkprof.out
    TKPROF: Release 10.1.0.4.0 - Production on Fri Aug 24 10:24:12 2007
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Trace file: storedb_ora_27804.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    alter session set sql_trace true
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    select metadata
    from
    kopm$ where name='DB_FDO'
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 2 0 1
    total 3 0.00 0.00 0 2 0 1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    1 TABLE ACCESS BY INDEX ROWID KOPM$ (cr=2 pr=0 pw=0 time=136 us)
    1 INDEX UNIQUE SCAN I_KOPM1 (cr=1 pr=0 pw=0 time=67 us)(object id 350)
    select u.name, o.name, a.interface_version#
    from
    association$ a, user$ u, obj$ o where a.obj# = :1
    and a.property = :2
    and a.statstype# = o.obj# and
    u.user# = o.owner#
    call count cpu elapsed disk query current rows
    Parse 5 0.00 0.00 0 0 0 0
    Execute 5 0.00 0.00 0 0 0 0
    Fetch 5 0.00 0.00 0 20 0 1
    total 15 0.00 0.00 0 20 0 1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 NESTED LOOPS (cr=3 pr=0 pw=0 time=689 us)
    0 NESTED LOOPS (cr=3 pr=0 pw=0 time=649 us)
    0 TABLE ACCESS FULL ASSOCIATION$ (cr=3 pr=0 pw=0 time=645 us)
    0 TABLE ACCESS BY INDEX ROWID OBJ$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_OBJ1 (cr=0 pr=0 pw=0 time=0 us)(object id 36)
    0 TABLE ACCESS CLUSTER USER$ (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN I_USER# (cr=0 pr=0 pw=0 time=0 us)(object id 11)
    select a.default_cpu_cost, a.default_io_cost
    from
    association$ a where a.obj# = :1
    and a.property = :2
    call count cpu elapsed disk query current rows
    Parse 3 0.00 0.00 0 0 0 0
    Execute 3 0.00 0.00 0 0 0 0
    Fetch 3 0.00 0.00 0 9 0 0
    total 9 0.00 0.00 0 9 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS FULL ASSOCIATION$ (cr=3 pr=0 pw=0 time=633 us)
    select a.default_selectivity
    from
    association$ a where a.obj# = :1
    and a.property = :2
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.00 0 3 0 0
    total 3 0.00 0.00 0 3 0 0
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: SYS (recursive depth: 1)
    Rows Row Source Operation
    0 TABLE ACCESS FULL ASSOCIATION$ (cr=3 pr=0 pw=0 time=2021 us)
    declare
    cost sys.ODCICost := sys.ODCICost(NULL, NULL, NULL, NULL);
    obj1 "ORDSYS"."ORDIMAGESIGNATURE" := "ORDSYS"."ORDIMAGESIGNATURE"(NULL);
    obj2 "ORDSYS"."ORDIMAGESIGNATURE" := "ORDSYS"."ORDIMAGESIGNATURE"(NULL);
    begin
    :1 := "ORDSYS"."ORDIMAGEINDEXSTATS".ODCIStatsIndexCost(
    sys.ODCIINDEXINFO('STORE',
    'IMGORDINDEX2',
    sys.ODCICOLINFOLIST(sys.ODCICOLINFO('STORE', 'IMG_ORDIMAGE', '"SIGN"', 'ORDIMAGESIGNATURE', 'ORDSYS', NULL)),
    NULL,
    0,
    0),
    NULL,
    cost,
    sys.ODCIQUERYINFO(2,
    sys.ODCIOBJECTLIST(sys.ODCIOBJECT('IMGSCORE', 'ORDSYS'))),
    sys.ODCIPREDINFO('ORDSYS',
    'IMGSIMILAR',
    NULL,
    141),
    sys.ODCIARGDESCLIST(sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(2, 'IMG_ORDIMAGE', 'STORE', '"SIGN"', NULL, NULL, NULL), sys.ODCIARGDESC(2, 'IMG_ORDIMAGE', 'STORE', '"SIGN"', NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL), sys.ODCIARGDESC(3, NULL, NULL, NULL, NULL, NULL, NULL)),
    :6,
    :7
    , obj2, :8, :9,
    sys.ODCIENV(:10,:11,:12,:13));
    if cost.CPUCost IS NULL then
    :2 := -1;
    else
    :2 := cost.CPUCost;
    end if;
    if cost.IOCost IS NULL then
    :3 := -1;
    else
    :3 := cost.IOCost;
    end if;
    if cost.NetworkCost IS NULL then
    :4 := -1;
    else
    :4 := cost.NetworkCost;
    end if;
    :5 := cost.IndexCostInfo;
    exception
    when others then
    raise;
    end;
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.01 0 0 0 0
    Execute 0 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 0.01 0.01 0 0 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (recursive depth: 1)
    SELECT IMG_CD.image_id ,ORDSYS.IMGScore(123) score
    FROM IMG_CD ,img_ordimage Q, img_ordimage S
    WHERE Q.image_id = 11992231 AND
    ORDSYS.IMGSimilar(S.sign,Q.sign,' color="0,83",shape="0,17",location="0,26"',20,123)=1
    AND S.image_id = img_cd.image_id order by score
    call count cpu elapsed disk query current rows
    Parse 1 0.18 0.38 0 702 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 30 11.42 19.61 2568 4049 2217 432
    total 32 11.60 19.99 2568 4751 2217 432
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    Rows Row Source Operation
    432 SORT ORDER BY (cr=11107 pr=2568 pw=0 time=21310948 us)
    432 NESTED LOOPS (cr=11107 pr=2568 pw=0 time=21156098 us)
    432 NESTED LOOPS (cr=10241 pr=2568 pw=0 time=21141805 us)
    1 TABLE ACCESS BY INDEX ROWID IMG_ORDIMAGE (cr=4 pr=0 pw=0 time=220 us)
    1 INDEX UNIQUE SCAN IMGORDIDXID (cr=2 pr=0 pw=0 time=63 us)(object id 200937)
    432 TABLE ACCESS BY INDEX ROWID IMG_ORDIMAGE (cr=10237 pr=2568 pw=0 time=21140720 us)
    432 DOMAIN INDEX IMGORDINDEX2 (cr=9848 pr=2568 pw=0 time=21125137 us)
    432 INDEX UNIQUE SCAN IMG_CD_PK (cr=866 pr=0 pw=0 time=11411 us)(object id 48686)
    select T."SIGN".signature,T.rowid
    from
    STORE.IMG_ORDIMAGE T where T.rowid in (select P.orig_rowid from
    STORE.IMGORDINDEX2_FT$ P WHERE A1 BETWEEN 0 AND 100 AND A2 BETWEEN 0
    AND 100 AND A3 BETWEEN 0 AND 100 AND A4 BETWEEN 0 AND 100 AND A5
    BETWEEN 0 AND 100 AND A6 BETWEEN 0 AND 100 AND A7 BETWEEN 0 AND 100
    AND A8 BETWEEN 0 AND 100 AND A9 BETWEEN 0 AND 100 AND A10 BETWEEN 0 AND
    100 AND A11 BETWEEN 0 AND 100 AND A12 BETWEEN 0 AND 100 AND A13
    BETWEEN 0 AND 100 AND A14 BETWEEN 0 AND 100 AND A15 BETWEEN 0 AND 100
    AND A16 BETWEEN 0 AND 100 AND A17 BETWEEN 0 AND 100 AND A18 BETWEEN 0
    AND 100 AND A19 BETWEEN 0 AND 100 AND A24 BETWEEN 0 AND 100 AND A25
    BETWEEN 0 AND 100 AND A26 BETWEEN 0 AND 100 AND A27 BETWEEN 0 AND 100
    AND A28 BETWEEN 0 AND 100 AND A29 BETWEEN 0 AND 100 AND A30 BETWEEN 0
    AND 100 AND A31 BETWEEN 0 AND 100 AND A32 BETWEEN 0 AND 100 AND A33
    BETWEEN 0 AND 100 AND A34 BETWEEN 0 AND 100 AND A35 BETWEEN 0 AND 100
    AND A36 BETWEEN 0 AND 100 AND A37 BETWEEN 0 AND 100 AND A38 BETWEEN 0
    AND 100 AND A39 BETWEEN 0 AND 100 AND A40 BETWEEN 0 AND 100 AND A41
    BETWEEN 0 AND 100 AND A42 BETWEEN 0 AND 100 AND A43 BETWEEN 0 AND 100
    AND A44 BETWEEN 0 AND 100 AND A45 BETWEEN 0 AND 100 AND A46 BETWEEN 0
    AND 100 AND A47 BETWEEN 0 AND 100 AND A48 BETWEEN 0 AND 100 AND A49
    BETWEEN 0 AND 100 AND A50 BETWEEN 0 AND 100 AND A51 BETWEEN 0 AND 100
    AND A52 BETWEEN 0 AND 100 AND A53 BETWEEN 0 AND 100 AND A54 BETWEEN 0
    AND 100 AND A55 BETWEEN 0 AND 100 AND A56 BETWEEN 0 AND 100 AND A57
    BETWEEN 0 AND 100 AND A58 BETWEEN 0 AND 100 AND A59 BETWEEN 0 AND 100
    AND A60 BETWEEN 0 AND 100 AND A61 BETWEEN 0 AND 100 AND A62 BETWEEN 0
    AND 100 AND A63 BETWEEN 0 AND 100 )
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 5290 0.64 1.69 0 7058 0 5289
    total 5292 0.64 1.70 0 7058 0 5289
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 58 (recursive depth: 1)
    alter session set sql_trace false
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 0 0 0
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 58
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 2 0.18 0.38 0 702 0 0
    Execute 3 0.00 0.00 0 0 0 0
    Fetch 30 11.42 19.61 2568 4049 2217 432
    total 35 11.60 19.99 2568 4751 2217 432
    Misses in library cache during parse: 1
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 12 0.01 0.01 0 0 0 0
    Execute 11 0.00 0.00 0 0 0 0
    Fetch 5300 0.64 1.70 0 7092 0 5291
    total 5323 0.65 1.72 0 7092 0 5291
    Misses in library cache during parse: 1
    5 user SQL statements in session.
    10 internal SQL statements in session.
    15 SQL statements in session.
    Trace file: storedb_ora_27804.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    5 user SQL statements in trace file.
    10 internal SQL statements in trace file.
    15 SQL statements in trace file.
    9 unique SQL statements in trace file.
    5535 lines in trace file.
    34 elapsed seconds in trace file.
    oracle@storea 10:24 ~/admin/storedb/udump >
    Message was edited by:
    user591430

  • ORDImage in APEX 4.0.1 classic report

    Hi
    I can successfully show BLOB images in a report but I'm stuck when I switch to ORDImage.
    I've been playing around with the Number/Date Format Column Attributes and borrowing from the BLOB version, have come up with
    IMAGE:ORDIMAGE_IMAGES:THUMBNAIL:IMAGE_ID
    However, I'm getting an error - ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    I guess it's the thumbnail which is causing the problem as this is the ORDImage column in the ordimage_images table
    I've tried THUMBNAIL.GETCONTENT() and THUMBNAIL.CONTENT to no avail in attempt to get the BLOB data out of ORDImage
    Any ideas?
    Brian
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE     11.2.0.1.0     Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

    Have you tried switching to SI_STILLIMAGE, ive heard that it is better, although there are some issues with speed when comparing average color. See you on friday. Love Patrick x

  • Creating a new OrdImage in Java

    I want to manipulate and validate an incoming OrdImage object before adding a record for it in the database. Specifically, I want to do a hash on the file and check for duplicates.
    The few examples I've seen fetch an existing row from the database that already has an initialized OrdImage, but I'd rather do something like this:
    OrdImage tempImage = new OrdImage(); // not able to do this
    uploadPhoto.loadImage(tempImage);
    Is there some code showing how to do this?
    Alternately, is there a Java example that shows how to generically upload a file as a blob, and then push it into a new record that uses OrdImage?
    Thanks!
    Mike

    Hi,
    I am thinking you want to create the hash after putting it in the database because you are getting the image from HTTP? You could check the hash before insertion into the database, if you want it in the database before checking the hash, and you find a duplicate, you could simply roll back the transaction... This should not be a common case, so overhead should not be onerous.
    I don't understand why you would want to upload a file into a simple blob before putting the blob in the intermedia object. We have examples, and utility classes for inserting images into interMedia.
    See: http://www.oracle.com/technology/sample_code/products/intermedia/index.html
    http://www.oracle.com/technology/products/intermedia/htdocs/intermedia_quickstart/intermedia_java_qs.html
    http://www.oracle.com/technology/sample_code/products/intermedia/htdocs/imedia_servlet_jsp.html
    Larry

  • How to populate a table with ORDSYS.ORDImage item by BLOB item?

    Hi, I have a table, that contain blob column and another table with ORDSYS.ORDImage column and I would like to populate ORDSYS.ORDImage item in table by BLOB item, in which I have store some images?

    You should be able to do something like (this is off the top of my head, so please excuse any compile errors...):
    define
    b blob;
    i ordsys.ordimage;
    begin
    INSERT INTO ordsysImgs VALUES (1,ORDSYS.ORDImage.init());
    select imgCol into i from ordsysImgs where ID = 1 for update;
    select blobcol into b from blobImgTable;
    i.source.localdata := b;
    i.setlocal();
    i.setproperties();
    update imgcol set imgCol = i where ID = 1;
    commit;
    end;

  • 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]

  • Diplaying of ordsys.ordimage field in a Report based on Query

    Hi,
    I have a table with a ordsys.ordimage field, where I am uploading images. I created a custom report based on that table but I just cant seem to find a way to show images in it. Could anyone please tell me how to do this.
    I tried using this
    "portal30.wwv_user_utilities.get_intermedia('CP_IMAGE01','CP_IMAGE01','IMAGE',rowid) the_picture " but this does not help at all
    Thanks!
    vimpi

    Hello Prajwal,
    It is definely possible !!
    If you have already created your query pls paste the same here so that I can help you otherwise. I will give you a general guidelines and you can take it from there..
    Using the CASE Statement inside your SELECT you can achieve this.
    SELECT T1.ItemCode AS 'Item No.', T1.ItemName AS 'Item Description',
    CASE WHEN  T1.QryGroup1 = 'N' THEN T0.Price ELSE 0 END 'List Price'
    FROM  [dbo].[ITM1] T0  INNER  JOIN [dbo].[OITM] T1  ON  T1.ItemCode = T0.ItemCode   WHERE T0.PriceList = 1

  • How to show an ORDImage thumbnail without storing it ?

    Hi,
    I'm using Oracle 10g r2.
    I need to show ORDImages (and BLOBs).
    Here is my procedure that shows thumbnails :
    create or replace procedure show_photo_thumbnail(v_id_photo in number, v_height in number, v_width in number) as
         obj ordsys.ordimage;
         obj2 ordsys.ordimage;
    begin
         --obj2 := ordsys.ordimage.init();
         select phot_source into obj from photos where phot_id = v_id_photo;
         select phot_source into obj2 from photos where phot_id = v_id_photo for update;
         obj.processcopy('maxscale= '||v_width||' '||v_height, obj2);
         owa_util.mime_header(nvl(obj2.getmimetype(),'application/octet'), false );
         htp.p('content-length: ' || obj2.getcontentlength());
         htp.p('content-disposition: filename="' || obj2.source.srcname || '"');
         owa_util.http_header_close;
         wpg_docload.download_file(obj2.source.localdata);
         commit;
    end;It works, but if I call this function repeatedly (from our apex application), the image quality becomes less and less good, it seems it processes always the same image.
    And for example if I call show_photo_thumbnail(1126, 150, 150) and then show_photo_thumbnail(1126, 500, 500), it seems the 500 x 500 image is processed from the 150 x 150 thumbnail so the quality is very poor.
    I read the entire documentation and I really don't understand why.
    By calling this other procedure we can see that the content stored stay unchanged :
    procedure show_photo_infos(v_id_photo in number, v_height in number, v_width in number) as
         obj ordsys.ordimage;
         obj2 ordsys.ordimage;
    begin
         select phot_source into obj from photos where phot_id = v_id_photo;
         select phot_source into obj2 from photos where phot_id = v_id_photo for update;
         obj.processcopy('maxscale= '||v_width||' '||v_height, obj2);
         dbms_output.put_line('obj  : '||obj.getmimetype()||', '||obj.getcontentlength()||' bytes, '||obj.getwidth()||' x '||obj.getheight());
         dbms_output.put_line('obj2 : '||obj2.getmimetype()||', '||obj2.getcontentlength()||' bytes, '||obj2.getwidth()||' x '||obj2.getHeight());
    end;
    show_photo_infos(1126, 200, 200);
    obj  : image/jpeg, 79754 bytes, 572 x 504
    obj2 : image/jpeg, 4635 bytes, 200 x 176Any help would be much appreciated.
    Thanks.
    Yann.

    It should work exactly the same for ORDimage and BLOBs, as ORDImage stores and updates the image content in a BLOB attribute.
    The difference you are seeing might be because of which object you are reading. In the first example, obj2 was selected for update, but obj1 was not. So the local variable obj1 had the old data which was printed out, and this was different from the data in obj2, which had the changes that were updated in the table.
    If you don't want to persist the updated image, then you can select for update, make changes as you are currently, but then rollback at the very end (after you download the content). Then the original image will be retained in the table and changes you made in this transaction will be discarded. The next time you run the procedure you will be operating on the original image.
    I also notice you have a commit in the very first code snippet but not later. Depending on your logging settings that might be having an impact as well.

  • Problem with ordimage attribute in detail viewobject (a bug maybe?)

    Hi
    JDeveloper: 11.1.1.4
    I have an ordimage attribute in a viewobject among other attributes but it doesnt show the image while it shows other attributes of the viewobject correctly. It throws java.lang.ArrayIndexOutOfBoundsException when executing the "row = rows[0];" instruction in oracle.ord.html.OrdPlayMediaServlet.renderContent() method. Apparently the main reason for this error is that the vo viewobject doesn't get populated correctly (it contains no rows at all) and so the "rows = vo.findByKey(mKey, 1); " doesn't return any rows.
    Isn't this a bug? Is there any workaround to this?
    P.S: When I use another instance of the same viewobject as a master viewobject works just fine. The error occours only when the viewobject is used as a detail viewobject.
    Anyway, here is the exception:
    ]] Root cause of ServletException.
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:411)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         Truncated. see log file for complete stacktrace
    >
    <06/09/2011 IRDT 07:49:19 م> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at 06/09/2011 IRDT 07:49:19 م. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = 06/09/2011 IRDT 07:49:19 م SERVER = DefaultServer MESSAGE = [ServletContext@22121593[app:PPCM module:PPCM-ViewControllerCM-context-root path:/PPCM-ViewControllerCM-context-root spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@c1d6b6[
    GET /PPCM-ViewControllerCM-context-root/ordDeliverMedia?appModID=AppModuleCMDataControl&viewObjectName=AppModuleCM.VpConscriptPictureView1&contentCol=ORD_PICTURE&rowKey=0001000000063332323934330000000C000001323F51EEFD&amConfig=jhs1.model.services.AppModuleCMLocal&cache=1277027229000 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
    Accept: image/png,image/*;q=0.8,*/*;q=0.5
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive
    Referer: http://127.0.0.1:7101/PPCM-ViewControllerCM-context-root/faces/UIShell?_adf.ctrl-state=hjjcdrfdk_4&_afrLoop=40582159673504
    Cookie: JSESSIONID=v23hTmyL7mZ9vmMZSndhG7g1sds8CDSy3rn3bL2XcGLgVTLG6s2V!752893283
    ]] Root cause of ServletException.
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.ord.html.OrdPlayMediaServlet.renderContent(OrdPlayMediaServlet.java:411)
         at oracle.ord.html.OrdPlayMediaServlet.deliver(OrdPlayMediaServlet.java:264)
         at oracle.ord.html.OrdPlayMediaServlet.doGet(OrdPlayMediaServlet.java:205)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101017 MACHINE = PC-SD14-00007 TXID = CONTEXTID = ef583e64d845493d:6a9a6ea3:1323e534a92:-8000-00000000000005b2 TIMESTAMP = 1315322359312
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >

    I have encountered the same problem.
    JDeveloper 11.1.1.3
    Did you come up with a work-around since September?

  • Displaying images from ORDSYS.ORDIMAGE columns

    Does anyone know, if Oracle9i Reports can display images fetched from ORDIMAGE columns in the database? If so, could you give me a brief explanation how?
    Thanks in advance!

    Jacob,
    As of now , it is not supported. It is under development for next release.
    It currently supports images stored in DB as LOBs
    Thanks
    The Oracle Reports team

  • How to send an email from ADF11g.

    Hi,
    How to send an email from ADF11g.can u give example code and send me any link.
    Regards
    AP

    perfect and simple way is to use the java mail api from apache
    very simple, easy to use, and handle all types of emails.
    http://commons.apache.org/email/userguide.html

  • Weblogic Server issue in ADF11g

    Hi All,
    Im working in ADF11g . My .jspx used to work but suddenly it is giving the followng error inspite of correct url in the browser.
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Can anyone help me in solving this issue.
    Thanks,
    User

    Hi,
    if this is with the integrated server in JDeveloper then check if you have hanging Java processes in the Windows Task Manager. If you are accessing bounded taskflows and this happens, make sure that the taskflow is accessible, or if you use some state token with it that the state token is valid
    Frank

Maybe you are looking for

  • HT5874 how do i setup encryption on my iphone 5s?

    I am looking for steps to setup encryption on my iphone 5s.  My company compliance officer says that the device needs to be NIST FIPS encryption compliant.  I believe that includes the entire disk. Thanks in advance. Rod

  • Embedded Database - data does not load

    Hello. I am currently using NetBeans 6.5 and am experimenting with the CarsApp tutorial. Whenever I create an application using the server database, the data loads automatically when the application starts. However, when I create the application usin

  • Why is the syncing so slow when I sync my 3rd gen iPod touch?

    I am currently syncing my 3rd gen iPod touch to the newest version of iTunes. It is still "backing up the iPod" and it is still not done after 15 minutes. Is it because of my computer (windows 7 64-bit) or is it because I am syncing alot of things/it

  • Credit card unavailable

    I am trying to update my credit card and for three days I have been getting credit card processing is unavailable. It is very frustrating as I would like to purchase a song. What is going on? How can I contact Apple to see what the deal is? ANYONE???

  • Updation of item level data in delivery.

    Hi Experts, i need to update/Modify the country of origin field in the delivery item level and i am unnable to control this item no and pagedown so please send me BDC programe which is similar to my requirement. the only problem i am facing is how to