BLOB ITEMS

Hi everyone,
I have a table with one BLOB field, in Oracle forms 6i i used this table and specified BLOB field as IMAGE item, when i read image into this field it shows inside it and when I issue commit, I can then retreive image from the field correctly with no problems.
I have another table with three BLOB fields, I also used this table in forms 6i and specified BLOB fields as IMAGE items, all of them have 'sizing style' property set to 'adjust'...I'm facing a problem when I read an image into one of the items it displayed properly, but when I issue commit and then retreive the record, the image become (white) and the image i read previously appears croped (not adjusted) and shows on another image item in the same block and overriting it's content!!!
I'm sure that every image item is mapped to diffirent column in the table and there are no shared columns between image items...this is driving me crazy
Please I need your suggestions..how can i solve this problem?
Thanks a lot
Regards,
LoveSoul

Hi,
Thanks for replying me,
I'm used patch 17 to solve internal error code problem when running the form, I tried newer patch I think patch 19 it doesnt solve the problem so I returned back to patch 17.
If I install patch 19 again, does it erase updates done by patch 17 ???
Regards,
LoveSoul

Similar Messages

  • "Error: Document not found (WWC-46000)" with a form based on a table with blob item

    Hi all,
    I have to manage a table-based form. One of the fields of the table is BLOB and the corrisponding field of the form is HIDDEN.
    When I push the INSERT button all works well but when I try to UPDATE I get "Error: Document not found. (WWC-46000)".
    Have you some suggestions ?
    Thanks,
    Antonino
    p.s. Oracle Portal 3.0.7.6.2 / NT
    null

    Sorry, I think I did not explain well my problem.
    Imagine this simple table:
    key number;
    description varchar2(50);
    image blob;
    I need to make a form that contains the corresponding "key" field and the "description" field but not the "image" one. I don't want to allow the end user to upload images!
    When I insert a row the form works well and in the "image" field of the table an empty blob or null (now I don't remember) is stored: that's ok.
    Now imagine I want to change the value of the "description" field. I submit a query for the right key, I type a new value for the description and finally I push UPDATE button but....an error occours.
    I think this error is related with the Blob item of the table but I'm not sure.
    Thanks again,
    Antonino
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitry Nonkin([email protected]):
    Antonino,
    If I understood the problem correctly:
    The form's item type for BLOB column used to upload content cannot be hidden, that's why we have a special item type FileUpload(binary).
    Thanks,
    Dmitry<HR></BLOCKQUOTE>
    null

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

  • Display in "Oracle Forms 10g" a BLOB item

    Hey, anybody know if there was any java component or a way to display in "Oracle Forms 10g" a BLOB item, which contains no images, but files of type PDF, DOC, TXT ....
    Thank you

    <p>The Enhanced HTML browser bean allows showing amost everything in its window. See this screen shot</p>
    So you could download your stored document onto the AS or the client with the Webutil FILE_TRANSFERT package, or you could envisage top develop
    a nice PL/SQL procedure that would send the content via the UTL_HTTP package.
    Francois

  • Cannot Upload or Display Image in blob Item.

    Hi Guyz,
    I'm inserting a image in a blob item using oracle forms 10g and database 9i, everything is working fine except uploading image, i tried the below code it was opening file Open dialog and as soon as i select the image to insert into the image item it will not shown anything at all in image item.
    WBP trigger code.
    [code]
    DECLARE
    FILENAME VARCHAR2(256);
    BEGIN
    FILENAME := WEBUTIL_FILE.FILE_OPEN_DIALOG();
    IF FILENAME IS NOT NULL THEN
      CLIENT_IMAGE.READ_IMAGE_FILE(FILENAME,SUBSTR(FILENAME,INSTR(FILENAME,-1)),'MN_PICTURES.PICTURE');
      :MN_PICTURES.PIC_STAT:=1;
    END IF;
    END;
    [/code]
    then i tried new thin from scratch using the below link to insert the code but still same i cannot insert image into the image item i set the below properties in image item
    Baig's Technology Blog: Storing and Retrieving Images / Word / Excel / PDF and Movies in Oracle Database using Forms10g
    sizing style=Adjust
    Image format= TIFF.
    any patch required or i'm doing something wrong?
    Regards
    Moazam

    hey guyz,
    I found the solution on below link...thx
    https://forums.oracle.com/thread/2190302
    Regards
    Moazam

  • Error: Document not found. (WWC-46000) while updating a form whit blob items

    Hi all,
    I have to manage a table-based form. The table has a BLOB field that allows NULL.
    The blob field of the form is hidden.
    When I try to INSERT all works well but when I attempt to UPDATE I get "Error: Document not found. (WWC-46000)".
    Have you some suggestions ?
    Thanks,
    Antonino
    p.s. Oracle Portal 3.0.7.6.2 / NT

    I have the same problem. I have one form to insert file (works fine), and another form to update that record, but not the file. The fields of the file (blob and mime type) are not on the form at all, and getting the message WWC-46000.

  • How to unload BLOB items ?

    Hi, I have apps hosted on apex.oraclecorp.com.
    Need to backup my data, all good using Data Unload in the SQL workshop - > Utilities section.
    Except..... one table has a BLOB dta type column.
    How can I backup my BLOB data objects with the limited access provided on this site ??

    Hi,
    you could create an APEX Application with a Report containing download-links for each BLOB. This may get boring for a big number of BLOBs.
    Alternatively you could use APEX_MAIL.Send_Mail and Add_Attachement to create an APEX Process which sends your BLOBs with email.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Using BLOB for storing OLE Item and Concadinating

    Hi,
    We are using BLOB data type to store Word document using OLE
    interface in forms 6i. It is working fine.
    Now we want to merge two or more BLOB items to one item to make
    the document as a single document. We tried to use
    DBMS_LOB.APPEND package to do the same but we could see only the
    first document that is appended and the remaining documents are
    not visible. When we analyzed the size of the BLOB item, it is
    getting increased whenever we append another document.
    Looking for the solution urgently. It would be better to have
    the code that is used for doing this.
    Thanks in Advance,
    Ganesan

    What you say seems quite normal.
    You should not use dbms_lob.append, but rather call Word and
    copy the text & other objects from one of the LOBs to the end of
    the other one.
    I wish I could tell you more about how to do that, but I don't
    know. I'm still looking for more doco on the methods &
    properties for Word & XL to be invoked when using OLE2.

  • BTREE and duplicate data items : over 300 people read this,nobody answers?

    I have a btree consisting of keys (a 4 byte integer) - and data (a 8 byte integer).
    Both integral values are "most significant byte (MSB) first" since BDB does key compression, though I doubt there is much to compress with such small key size. But MSB also allows me to use the default lexical order for comparison and I'm cool with that.
    The special thing about it is that with a given key, there can be a LOT of associated data, thousands to tens of thousands. To illustrate, a btree with a 8192 byte page size has 3 levels, 0 overflow pages and 35208 duplicate pages!
    In other words, my keys have a large "fan-out". Note that I wrote "can", since some keys only have a few dozen or so associated data items.
    So I configure the b-tree for DB_DUPSORT. The default lexical ordering with set_dup_compare is OK, so I don't touch that. I'm getting the data items sorted as a bonus, but I don't need that in my application.
    However, I'm seeing very poor "put (DB_NODUPDATA) performance", due to a lot of disk read operations.
    While there may be a lot of reasons for this anomaly, I suspect BDB spends a lot of time tracking down duplicate data items.
    I wonder if in my case it would be more efficient to have a b-tree with as key the combined (4 byte integer, 8 byte integer) and a zero-length or 1-length dummy data (in case zero-length is not an option).
    I would loose the ability to iterate with a cursor using DB_NEXT_DUP but I could simulate it using DB_SET_RANGE and DB_NEXT, checking if my composite key still has the correct "prefix". That would be a pain in the butt for me, but still workable if there's no other solution.
    Another possibility would be to just add all the data integers as a single big giant data blob item associated with a single (unique) key. But maybe this is just doing what BDB does... and would probably exchange "duplicate pages" for "overflow pages"
    Or, the slowdown is a BTREE thing and I could use a hash table instead. In fact, what I don't know is how duplicate pages influence insertion speed. But the BDB source code indicates that in contrast to BTREE the duplicate search in a hash table is LINEAR (!!!) which is a no-no (from hash_dup.c):
         while (i < hcp->dup_tlen) {
              memcpy(&len, data, sizeof(db_indx_t));
              data += sizeof(db_indx_t);
              DB_SET_DBT(cur, data, len);
              * If we find an exact match, we're done. If in a sorted
              * duplicate set and the item is larger than our test item,
              * we're done. In the latter case, if permitting partial
              * matches, it's not a failure.
              *cmpp = func(dbp, dbt, &cur);
              if (*cmpp == 0)
                   break;
              if (*cmpp < 0 && dbp->dup_compare != NULL) {
                   if (flags == DB_GET_BOTH_RANGE)
                        *cmpp = 0;
                   break;
    What's the expert opinion on this subject?
    Vincent
    Message was edited by:
    user552628

    Hi,
    The special thing about it is that with a given key,
    there can be a LOT of associated data, thousands to
    tens of thousands. To illustrate, a btree with a 8192
    byte page size has 3 levels, 0 overflow pages and
    35208 duplicate pages!
    In other words, my keys have a large "fan-out". Note
    that I wrote "can", since some keys only have a few
    dozen or so associated data items.
    So I configure the b-tree for DB_DUPSORT. The default
    lexical ordering with set_dup_compare is OK, so I
    don't touch that. I'm getting the data items sorted
    as a bonus, but I don't need that in my application.
    However, I'm seeing very poor "put (DB_NODUPDATA)
    performance", due to a lot of disk read operations.In general, the performance would slowly decreases when there are a lot of duplicates associated with a key. For the Btree access method lookups and inserts have a O(log n) complexity (which implies that the search time is dependent on the number of keys stored in the underlying db tree). When doing put's with DB_NODUPDATA leaf pages have to be searched in order to determine whether the data is not a duplicate. Thus, giving the fact that for each given key (in most of the cases) there is a large number of data items associated (up to thousands, tens of thousands) an impressive amount of pages have to be brought into the cache to check against the duplicate criteria.
    Of course, the problem of sizing the cache and databases's pages arises here. Your size setting for these measures should tend to large values, this way the cache would be fit to accommodate large pages (in which hundreds of records should be hosted).
    Setting the cache and the page size to their ideal values is a process of experimenting.
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/pagesize.html
    http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/cachesize.html
    While there may be a lot of reasons for this anomaly,
    I suspect BDB spends a lot of time tracking down
    duplicate data items.
    I wonder if in my case it would be more efficient to
    have a b-tree with as key the combined (4 byte
    integer, 8 byte integer) and a zero-length or
    1-length dummy data (in case zero-length is not an
    option). Indeed, these should be the best alternative, but testing must be done first. Try this approach and provide us with feedback.
    You can have records with a zero-length data portion.
    Also, you could provide more information on whether or not you're using an environment, if so, how did you configure it etc. Have you thought of using multiple threads to load the data ?
    Another possibility would be to just add all the
    data integers as a single big giant data blob item
    associated with a single (unique) key. But maybe this
    is just doing what BDB does... and would probably
    exchange "duplicate pages" for "overflow pages"This is a terrible approach since bringing an overflow page into the cache is more time consuming than bringing a regular page, and thus performance penalty results. Also, processing the entire collection of keys and data implies more work from a programming point of view.
    Or, the slowdown is a BTREE thing and I could use a
    hash table instead. In fact, what I don't know is how
    duplicate pages influence insertion speed. But the
    BDB source code indicates that in contrast to BTREE
    the duplicate search in a hash table is LINEAR (!!!)
    which is a no-no (from hash_dup.c):The Hash access method has, as you observed, a linear search (and thus a search time and lookup time proportional to the number of items in the buckets, O(1)). Combined with the fact that you don't want duplicate data than hash using the hash access method may not improve performance.
    This is a performance/tunning problem and it involves a lot of resources from our part to investigate. If you have a support contract with Oracle, then please don't hesitate to put up your issue on Metalink or indicate that you want this issue to be taken in private, and we will create an SR for you.
    Regards,
    Andrei

  • Single item having content type property set for both GIF and JPEGs

    Is it possible to have a single blob column in the database that stores either jpegs or gif files and then the ability to display either type through a hyperdrill on a Discoverer item? If so, how can the content type property on an blob item be set to two options?
    regards
    Paul P

    Hi,
    Discoverer will use the content_type property to set the MIME type used when opening the blob. So if your blob contains more than one type of file and you want to use different programs to view the files then there are 2 options you can use:
    Option 1: Create a EUL item for each content type. For example, you create a item called gif_content, set the content type to gif, and use decode(type, 'GIF', blob) to populate the item only if the content is gif. Then the user will see multiple hyperlink columns, but only one of the columns will contain a link in each row.
    Option 2: Create a mod_plsql procedure to download the blob. Rather than include the blob in your EUL, instead include a URL that runs your mod_plsql procedure to download the blob. Set the content type for the URL to be FILE and in the procedure set the MIME type using OWA_UTIL.mime_header and download the blob using WPG_DOCLOAD.download_file. Then the user will see one URL hyperlink that will download all file types.
    Hope that helps,
    Rod West

  • Report not showing my image in BLOB field

    Hi,
    I m using report 6i.
    But I just upgraded my server from Oracle 8.0 to 9i and now that I have a new table with image, I created the field to be a BLOB field.
    However, in old days, I uses LongRaw and I save my images using the following:-
    READ_IMAGE_FILE(filename, 'BMP', 'logos.logo')
    it works perfectly when I call the file outfrom my report but now, after I changed to BLOB, I use the report to open the BLOB field and stated it as image, it shows error stating that the report cannot identify the image.
    Any advice on this please?
    Thankz

    Develop a simple form including the BLOB field and set the properties of the image item accordingly.
    See help in forms 9i for details & examples.
    Use read_image_file built-in to read the image from the file to the BLOB item of this form.
    In the report, you set the properties of the BLOB field as in my previous reply. Run the report. That's all!
    In the reports developer, I don't think you can use read_image_file built in.

  • Help with BLOBs

    Hello everybody.
    Im working with Oracle 10G R 1.2
    Im trying to upload a file from filesystem (/tmp) into a BLOB item in memory. (lob_loc)
    I have a ora-22275 error with those lines
    src_file := bfilename(l_directory,l_filename);
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    v_length := dbms_lob.getlength(src_file);
    dbms_lob.loadfromfile(Lob_loc, src_file, v_length
    I have read some documentation and it say that I must initialize the Blob Item (lob_loc)
    How I can do this?
    Thanks in advanced to everybody and regards to all.

    I don't know, what type of modification you will do in the "binary" file. However here is an example of loading a file into a temporary LOB then modify it and then inserting it into table.
    SQL> CREATE TABLE test_blob (id INTEGER,blob_col BLOB);
    Table created.
    SQL> DECLARE                                                  
      2    file_handle UTL_FILE.file_type;                        
      3    v_fname     VARCHAR2(20) := 'mytest.txt';              
      4    buffer      VARCHAR2(32767);                           
      5  BEGIN                                                    
      6    file_handle := UTL_FILE.fopen('TEST_DIR', v_fname, 'W');
      7    buffer      := 'This is first line';                   
      8    UTL_FILE.put_line(file_handle, buffer, TRUE);          
      9    buffer := 'This is second line';                       
    10    UTL_FILE.put_line(file_handle, buffer, TRUE);          
    11    buffer := 'This is third line';                        
    12    UTL_FILE.put_line(file_handle, buffer, TRUE);          
    13    UTL_FILE.fclose(file_handle);                          
    14  END;                                                     
    15  /                                                        
    PL/SQL procedure successfully completed.I will use the file created above (three lines) into my LOB.
    SQL> DECLARE                                                 
      2    v_src_loc BFILE := BFILENAME('TEST_DIR', 'mytest.txt');
      3    v_amount  INTEGER;                                    
      4    v_b       BLOB:=EMPTY_BLOB; -- Necessary to initialize.
      5    v_offset INTEGER; -- Where to write.
      6    my_var    VARCHAR2(32767):='This is fourth line';
      7    v_lobloc BLOB;                                     
      8  BEGIN                                                   
      9    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY);      
    10    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); 
    11    DBMS_OUTPUT.put_line('The length before modification:'||v_amount);
    12    -- initalize the new blob
    13    dbms_lob.createtemporary(v_b,TRUE);
    14    DBMS_LOB.LOADFROMFILE(v_b, v_src_loc, v_amount); -- Loading from file
    15    ---Adding one line
    16    Dbms_LOB.WRITEAPPEND(v_b,length(my_var),utl_raw.cast_to_raw(my_var));
    17    INSERT INTO test_blob      
    18       VALUES                     
    19         (1, EMPTY_BLOB())        
    20       RETURNING blob_col INTO v_lobloc;
    21    v_amount := DBMS_LOB.GETLENGTH(v_b); 
    22    DBMS_OUTPUT.put_line('The length after modification:'||v_amount);
    23    --Inserting the modified LOB into file
    24    DBMS_LOB.copy(v_lobloc,v_b,v_amount);  
    25    DBMS_LOB.CLOSE(v_src_loc);
    26  END;
    27  /
    PL/SQL procedure successfully completed.
    SQL> commit;
    Commit complete.This step is just for verification purpose!. The file had three lines, it should have four lines.
    SQL> DECLARE                                                                         
      2      v_lob_loc BLOB;                                                             
      3      CURSOR cur IS                                                               
      4         SELECT id, blob_col FROM test_blob;                                      
      5       v_rec test_blob%ROWTYPE;                                                   
      6     BEGIN                                                                        
      7       OPEN cur;                                                                  
      8       LOOP                                                                       
      9         FETCH cur                                                                
    10          INTO v_rec;                                                             
    11        v_lob_loc := v_rec.blob_col;                                              
    12         DBMS_OUTPUT.PUT_LINE('The length is: ' ||                                
    13                              DBMS_LOB.GETLENGTH(v_lob_loc));                     
    14         DBMS_OUTPUT.PUT_LINE('The ID is: ' || v_rec.id);                         
    15         DBMS_OUTPUT.PUT_LINE('The blob is read: ' ||                             
    16                              UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(v_lob_loc, 
    17                                                                       200,       
    18                                                                       1)));      
    19         EXIT WHEN cur%NOTFOUND;                                                  
    20       END LOOP;                                                                  
    21       CLOSE cur;                                                                 
    22   END;                                                                           
    23  /
    PL/SQL procedure successfully completed.
    SQL> set serverout on
    SQL> /
    The length is: 80
    The ID is: 1
    The blob is read: This is first line
    This is second line
    This is third
    line
    This is fourth line

  • Not able to get MetaData of BlobItems using java or by using the URI

    line1
    String metadta = blob.getMetadata().toString();
    line2 System.out.println(metadta);
    line3 blob.download(fileOutputStream);
    line4 metadta = blob.getMetadata().toString();
    line5 metadta.toString();
    line6 System.out.println(metadta);
    I will get NullPointerException on Line1
    And will be Able to get MetaData of the blob item after i initiate download .

    Hi,
    You have got NullPointerException on Line1, what was this blob on line 1, I didn't very familar with java, but from my experience, we need to know the details of getMetadata(), about download blob file, I suggest you read this article:
    http://www.windowsazure.com/en-us/documentation/articles/storage-java-how-to-use-blob-storage/
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can i show gif files through reports

    I have blob column in a table and i store text with some gif files there ...i made a report for that and i set the property of blob item like ..file format as "text" and containes html tags "yes" then i generate the report on html but when i see the on html i can see only text not any picture like .gif file ..
    if any body have the solutuion to show .gif files with text then tell me ...
    Thanx..

    hello,
    you say, you store text with gif images in a blob. the question would be, in what format. if you store HTML text there, the images are actually not stored in the document but only references to them. you might then check the src attributes of your IMG tags if they point to valid destinations.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error On Attach File in Apex 4.0.2 And Oracle database 10.2.3.0

    hi all
    i using Apex 4.0.2 and Oracle database 10.2.0.3
    i have Blob Item in table and i wanted upload a file to Blob Item .
    when i used Attach file button at the first saving connection failed and the second time successfully
    How can i Fixed this problem?
    Tommy
    Edited by: Tommy on Sep 4, 2011 10:50 AM

    Hi,
    The absolute link works fine, but opening it in IE, I will get the following error message:
    Internet Explorer could not open http://localhost:8080/i as a Web Folder.
    I have troubles with Windows Server 2003, I'm going to install APEX in XP. Thank you.
    Guys, I installed APEX on Windows XP and the borwser seems to give the same message about creating a webfolder. I'm unable to create one, please help will be appreciatied.
    Regards,
    Edited by: 873013 on 17-jul-2011 12:05

Maybe you are looking for

  • Toplink Essentials: how can I not to auto persist computed/virtual column

    Tags: Toplink Essentials, JPA, virtual columns Hi All, This appears to be a newbie question. But I cannot get it solved. First, my system is Eclipse + TOPlink essentials. My relational db table has a computed column. It is derived from a column of th

  • How to get college wi-fi hooked up to the Apple TV

    I live in a dorm and we cannot get the wi-fi to hook up with the apple TV. The Wi-fi is username AND password so it doesn't wprk just through set up. I tried to set it up through the apple configurator and that didn't work either. Any ideas? Thanks!

  • Editing and updating a row in Datagrid

    Hi All, I am getting the list of records from database and displaying those records in Datagrid with the help of dataprovider. i want to edit any record and have to update. How can i do this. Can any one help me. thanks Raghu.

  • Rffoedi1 - yellow idoc

    Hi Experts, I am creating the remittance(automatic payment program) through transaction f110, and using the report  rffoedi1 to trigger the IDoc for the same, i have done all the configurations right but still the status of the Idoc is yellow (in pro

  • How do I transfer Photoshop 4.0 photos to Windows 8 computer?

    I got a new computer that is Windows 8.  My old laptop had all my photos stored on Adobe Photoshop Elements 4.0.  It was windows XP.  I have saved it all to an external hard drive.  How do I now get them on to my new Windows 8 computer?