Copy blob images into ORDIMAGE column

Hi
I actually have a table (TABLE1) with a blob column. Images are Stored in this table. In order to user Intermedia Image (scale method), I need to put this images into a table (TABLE2) with an ORDIMAGE type column.
TABLE1
ID NUMBER
PHOTO BLOB
TABLE2
ID NUMBER
PHOTO ORDSYS.ORDIMAGE
I'm able to insert data in the new table, but the properties of the ordimage columns are not set properly and I get IMG-704 when I try to use the setProperties method of the Ordimage columns.
Can anyone Help ?
Thanks
Olivier GIBERT
null

Here is the proc I Use to transfer from blob table named photo to ORDIMAGE table named PHOTO_TEST
procedure blob_to_ordimage is
cursor get_blob_cur is
select numphoto
, photo
from photo
where rownum<50;
localImage ordsys.ordimage;
begin
delete from photo_test;
FOR get_blob_rec IN get_blob_cur
LOOP
localImage := ordsys.ordimage(ordsys.ordsource
(get_blob_rec.photo,null,null,
null,null,null),null,null,null,null,null,null,null);
localImage.setLocal();
insert
into photo_test
( numphoto
, photo)
values
( get_blob_rec.numphoto
, localImage);
END LOOP;
commit;
end;
this proc works fine but image properties are unset.
If I add the following command :
localImage.setProperties;
after the Image.setLocal, I get ORA-704.
Can anyone help ???
null

Similar Messages

  • How to copy one column BLOB value into another column of another database.

    How to copy one column BLOB value into another column of another database.
    BLOB value contains word document.
    I thought of copy the BLOB value into a text file and then update the new column value by the same text in textfile. Will this work?
    Is there any other better way to do this?

    You're welcome
    BLOB fields contains binary data. I don't think you can do this
    Also if I view the BLOB as text. Can I copy it and insert into the new database.
    I think your options are as I said. Datapump or CTAS
    Best Regards

  • Copy/paste images into pages within sharepoint online?

    There seems to be a workaround to use RadControl for this. (http://social.msdn.microsoft.com/Forums/en-US/655c080f-ec1e-4e69-b082-d35973ee426a/copy-and-paste-for-images-in-sharepoint)
    However, I don't think we can deploy custom app/binaries onto sharepoint online.
    Is there other way we can easily copy/past images into pages?
    Thx

    you cannot paste the images into sharepoint pages directly, Images cannot be rendered as HTML so cannot be pasted.
    You have to upload the images into SharePoint then insert it on the pages /places you want.
    or other work aorund buy the 3rd party tool which you mentioned.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Copy/paste images into pages within sharepoint cloud 365?

    There seems to be a workaround to use RadControl for this. (http://social.msdn.microsoft.com/Forums/en-US/655c080f-ec1e-4e69-b082-d35973ee426a/copy-and-paste-for-images-in-sharepoint)
    However, I don't think we can deploy custom app/binaries onto sharepoint 365.
    Is there other way we can easily copy/past images into pages?
    Thx

    Hi garynguyen,
    premise doesn't provide this kind of oob function to copy and paste the image into SharePoint page directly, you may develop your own solution (or use third party solution) to ahcieve this goal.
    For Office365 SharePoint online question, we have a dedicated forum as below, you can post there for a better assistance with more experts regarding this Office365 issue.
    https://community.office365.com/en-us/f/154.aspx
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • Read image from ORDImage column.

    I want to retrieve image from table with ORDImage column in PL/SQL but receive the following error:
    declare
    src BLOB;
    begin
    select stockphotos.photo.getcontent into src from stockphotos
    where photo_id = 1 for update;
    end;
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Thanks.

    Please look at:
    Oracle9i by Example Series
    The Oracle9i by Example Series provides hands-on step-by-step instructions on how to implement technological solutions to business problems. The section "Manage Content in the Database" in the "Release 2" series should be of special interest.
    http://otn.oracle.com/sample_code/products/intermedia/content.html

  • CS6 AI hangs when trying to directly copy an image into CS6 PS

    Hi All
    Firstly thanks for taking the time to read this.
    I have a few users which are all experiencing the same issue. They didn't seem to have this issue until upgrading from CS5 to CS6.
    Basically AI stops responding (usually permanantly hangs and requires restarting app) for at least 30 seconds when trying to copy an image from AI into PS. The method they're using is to directly select the image from AI and then simply paste directly into PS (I know there are other methods of doing this but this is apparently the way they have always done it).
    Their machines are very well spec'd
    OS - Win7 64-bit
    RAM - 8 to 32GB!
    CPU - i7 INTEL
    GPU - Standard (but compatible) and has latest drivers but disabled by PS as i suspect it's not quite grunty enough?
    Win7 has been fully updated as well as all Adobe products / Drivers etc...
    I have tweaked both AI & PS (including the File Handling & Clipboard setting which enables AICB) for better performance.
    I think I have basically tried everything and confused as this wasn't a problem when they were using CS5?
    Am not a design expert at all so would appreciate any suggestions anyone may have?
    PS - have recreated their preferences too many times to remember too :-)
    PPS - have also recreated their Windows account & created a brand new account to for testing but still does it.

    Could be a scatch disk issue that is it may be the scratch disk they have selected is to fragmented or too full.
    Could be a font issue even though there may not be a font involved.
    Could be a font cache problem that is a font is not reacting to CS6 as well as it did to CS 5 and causing the font cache to bloat
    Could be that you have trash the Illustrator settings Folder and the com.adobe.illustrator.plst and not just the preferences.
    Possible if you have third party plug ins to be one wih a conflict.
    Possiily there is a conflicting software no one is aware of isnlled on all the computers involved.
    If you have some users that are not exppereiencing this problem then compare that computer(s) with the ones that are experiencing the problem.
    All you need is one that is working well. Look for fonts being installed or used, scratch disk configuration, network settings,plug ins, applications installed or application used by the others not used by the one with no problem.
    Perhaps you might think of things like what I mention that would i ahve not thought of.
    Good luck.

  • Inserting blob image into table

    ora.gif, image001.jpeg are the image names .these are stored in the location D:\oracle\Bfiles
    create directory BFILE_FILES as ‘D:\oracle\Bfiles';
    i want to insert the 2 images into table using blob
    how to create the table and how to insert and how to test that image is inserted or not

    Tom Kyte has it all Here

  • Copy/Paste images into Contribute CS3

    We have been copying and pasting images from Word Documents
    in Office 2003 into Contribute CS3 at my organization when
    developing content. We have been able to copy/paste images from
    Office 2003 and other programs like Paintshop Pro and SnagIt.
    Since upgrade to Microsoft Office 2007 all image copying and
    pasting has stopped working.
    Is there a known issue with this?
    Does anyone else have Office 2007 installed and is able to
    copy/paste images from a Word Document into a page in Contribute
    CS3?

    It appears that the problem only occurs if you are copy and
    pasting from something that hasn't been saved yet.
    In Word I inserted an image from my hard drive and tried to
    copy/paste it into Contribute and that failed. I then saved the
    Word Document to my hard drive, re-opened it and was able to
    copy/paste fine.
    Power Point, Snagit and Pain Shop Pro appear to have the
    problem even if it's been saved first.
    I was able to copy/paste an image from a Word Doc and
    PowerPoint into MSPaint just fine. I was also able to copy/paste
    between Office applications with out any problem. Snagit could
    copy/paste into Office just fine and MSPaint.
    This problem appears to be specific to Contribute CS3 but
    only from certain sources.

  • Copy an image into system clipboard takes too much memory

    Our Swing application copies a java.awt.BufferedImage into the system clipboard. Our image has a size of 1024x768 pixels and a depth of 24 bits per pixel.
    The copy from the image to the system clipboard works, but is very slow and takes too much memory. Before the copy, java.exe uses about 30 MB. After the copy, it uses about 90 MB! However, a 1024x768x3 image should consume only 2,4 MB.
    We did some debugging and it seems the AWT library does several copies of our original image in order to copy it in the system clipboard. I guess that each of these copies takes a lot of memory (probably because of a different format from the original image) and is not immediately garbage collected.
    This is a big issue for our application because the JVM throws an OutOfMemoryError when we try to copy a new image to the system clipboard.
    Here is our code. Do you have any idea? Thanks a lot for your help.
    // Create the image
    BufferedImage image = new BufferedImage(1024, 768, BufferedImage.TYPE_3BYTE_BGR);
    Graphics2D g2 = image.createGraphics();
    drawSomething(g2);
    g2.dispose();
    // Put the image into the system clipboard
    ImageSelection handler = new ImageSelection(image);
    Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
    clipboard.setContents(handler, handler);
    * An implementation of Transferable and ClipboardOwner to be used with
    * images.
    public class ImageSelection implements Transferable, ClipboardOwner {
        private static final DataFlavor flavors[] = {DataFlavor.imageFlavor};
        private Image image;
        public ImageSelection(Image imageToCopy) {
            this.image = imageToCopy;
        // Interface ClipboardOwner
        public void lostOwnership(Clipboard clipboard, Transferable transferable) {
            image = null;
        // Interface Transferable
        public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException,
                                                                IOException {
            if (isDataFlavorSupported(flavor)) {
                return image;
            else {
                throw new UnsupportedFlavorException(flavor);
        public DataFlavor[] getTransferDataFlavors() {
            return flavors;
        public boolean isDataFlavorSupported(DataFlavor flavor) {
            return flavor.equals(flavors[0]);
    }

    why dont u use other data structure to store the image , which will take less memory.

  • Copy-Paste ranks into a column

    Hi, I would like to copy a ranks of 10 cells and paste it into a column.
    Thank you

    Hello
    Enter the search tool of this forum and search for the keyword "transpose".
    Yvan KOENIG (from FRANCE dimanche 17 février 2008 19:27:57)

  • Can't copy & paste image into email using Safari

    Just what it says. If I use firefox, the image (not just the link) appears in the reply text box of the email I'm writing.
    if I use Safari, all I get is a little blue box with a question mark.

    I don't use GMail, so I can't answer your question. Maybe someone else can. Try the GMail user forums.

  • How can I insert a image into a BLOB column in a table?

    I am using forms6i against a 10gR2 database and I have one table with a BLOB column and I try to insert a image into this column. I get ORA-01461 error.
    The curious case is that in another table with a BLOB column it works very fine.
    What happens with the first table? How can I avoid the error?
    Thanks in advance.

    Hi hyue,
    Thanks for visiting Apple Support Communities.
    If you would like to add an image to a project in iMovie for iOS, see this article for helpful steps:
    iMovie for iOS (iPad): Add photos to a project
    http://support.apple.com/kb/PH3171
    All the best,
    Jeremy

  • Can't Copy Image Into Textedit

    This might be a coincidence but then maybe not... ever since I've installed MacOSX 8, I can no longer drag images or copy/paste images into TextEdit docs.
    Is there a TextEdit section here?
    Anyway,
    Logging in as a different user does not help.
    Trashing the TextEdit plist does not solve the problem...
    Any ides on what could be preventing this? Thanks!

    And 'deny network-outbound' messages. Sometimes I was dragging an image off a web page into a textedit to troubleshoot and sometimes from an image all ready on my computer.
    TextEdit(1857) deny network-outbound 173.192.108.232:80
    Process:         TextEdit [1857]
    Path:            /Applications/TextEdit.app/Contents/MacOS/TextEdit
    Load Address:    0x103f2c000
    Identifier:      com.apple.TextEdit
    Version:         301 (1.8)
    Build Info:      167-TextEdit~301000000000000
    Code Type:       x86_64 (Native)
    Parent Process:  launchd [240]
    Date/Time:       2013-03-19 12:40:37.441 -0500
    OS Version:      Mac OS X 10.8.3 (12D78)
    Report Version:  8
    Thread 0:
    0   libsystem_kernel.dylib            0x00007fff8c2d8a86 __connect + 10
    1   libsystem_network.dylib           0x00007fff96755960 tcp_connection_destination_start + 749
    2   libsystem_network.dylib           0x00007fff9675550b tcp_connection_start_next_destination + 62
    3   libsystem_network.dylib           0x00007fff967551ec tcp_connection_host_resolve_result + 1844
    4   libsystem_dnssd.dylib             0x00007fff90442401 handle_addrinfo_response + 446
    5   libsystem_dnssd.dylib             0x00007fff90440902 DNSServiceProcessResult + 673
    6   libdispatch.dylib                 0x00007fff8c2770b6 _dispatch_client_callout + 8
    7   libdispatch.dylib                 0x00007fff8c27929b _dispatch_source_invoke + 691
    8   libdispatch.dylib                 0x00007fff8c278305 _dispatch_queue_invoke + 72
    9   libdispatch.dylib                 0x00007fff8c278448 _dispatch_queue_drain + 180
    10  libdispatch.dylib                 0x00007fff8c2782f1 _dispatch_queue_invoke + 52
    11  libdispatch.dylib                 0x00007fff8c2781c3 _dispatch_worker_thread2 + 249
    12  libsystem_c.dylib                 0x00007fff9061ad0b _pthread_wqthread + 404
    13  libsystem_c.dylib                 0x00007fff906051d1 start_wqthread + 13
    Binary Images:
        0x7fff8c275000 -     0x7fff8c28aff7  libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
        0x7fff8c2c7000 -     0x7fff8c2e2ff7  libsystem_kernel.dylib (2050.22.13) <5A961E2A-CFB8-362B-BC43-122704AEB047> /usr/lib/system/libsystem_kernel.dylib
        0x7fff9043f000 -     0x7fff90447ff7  libsystem_dnssd.dylib (379.37) <616FC901-151E-38BF-B2C4-24A351C5FAAD> /usr/lib/system/libsystem_dnssd.dylib
        0x7fff90604000 -     0x7fff906d0ff7  libsystem_c.dylib (825.26) <4C9EB006-FE1F-3F8F-8074-DFD94CF2CE7B> /usr/lib/system/libsystem_c.dylib
        0x7fff96750000 -     0x7fff9675eff7  libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib

  • Inserting blob images in a database

    Hi there can anyone tell me how to insert a blob image into a table; can you actually give me an example
    thanks

    use DBMS_LOB.LOADFROMFILE.
    PROCEDURE LOADFROMFILE
    Argument Name                  Type                    In/Out Default?
    DEST_LOB                       BLOB                    IN/OUT
    SRC_LOB                        BINARY FILE LOB         IN
    AMOUNT                         NUMBER(38)              IN
    DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
    SRC_OFFSET                     NUMBER(38)              IN     DEFAULT

  • How to insert a pdf or jpeg image into a blob column of a table

    How to insert a pdf or jpeg image into a blob column of a table

    Hi,
    Try This
    Loading an image into a BLOB column and displaying it via OAS
    The steps are as follows:
    Step 1.
    Create a table to store the blobs:
    create table blobs
    ( id varchar2(255),
    blob_col blob
    Step 2.
    Create a logical directory in the database to the physical file system:
    create or replace directory MY_FILES as 'c:\images';
    Step 3.
    Create a procedure to load the blobs from the file system using the logical
    directory. The gif "aria.gif" must exist in c:\images.
    create or replace procedure insert_img as
    f_lob bfile;
    b_lob blob;
    begin
    insert into blobs values ( 'MyGif', empty_blob() )
    return blob_col into b_lob;
    f_lob := bfilename( 'MY_FILES', 'aria.gif' );
    dbms_lob.fileopen(f_lob, dbms_lob.file_readonly);
    dbms_lob.loadfromfile( b_lob, f_lob, dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    commit;
    end;
    Step 4.
    Create a procedure that is called via Oracle Application Server to display the
    image.
    create or replace procedure get_img as
    vblob blob;
    buffer raw(32000);
    buffer_size integer := 32000;
    offset integer := 1;
    length number;
    begin
    owa_util.mime_header('image/gif');
    select blob_col into vblob from blobs where id = 'MyGif';
    length := dbms_lob.getlength(vblob);
    while offset < length loop
    dbms_lob.read(vblob, buffer_size, offset, buffer);
    htp.prn(utl_raw.cast_to_varchar2(buffer));
    offset := offset + buffer_size;
    end loop;
    exception
    when others then
    htp.p(sqlerrm);
    end;
    Step 5.
    Use the PL/SQL cartridge to call the get_img procedure
    OR
    Create that procedure as a function and invoke it within your PL/SQL code to
    place the images appropriately on your HTML page via the PL/SQL toolkit.
    from a html form
    1. Create an HTML form where the image field will be <input type="file">. You also
    need the file MIME type .
    2. Create a procedure receiving the form parameters. The file field will be a Varchar2
    parameter, because you receive the image path not the image itself.
    3. Insert the image file into table using "Create directory NAME as IMAGE_PATH" and
    then use "Insert into TABLE (consecutive, BLOB_OBJECT, MIME_OBJECT) values (sequence.nextval,
    EMPTY_BLOB(), 'GIF' or 'JPEG') returning BLOB_OBJECT, consecutive into variable_blob,
    variable_consecutive.
    4. Load the file into table using:
    dbms_lob.loadfromfile(variable_blob, variable_file_name, dbms_lob.getlength(variable_file_name));
    dbms_lob.fileclose(variable_file_name);
    commit.
    Regards,
    Simma........

Maybe you are looking for

  • NF-e NOVA BADI J_1BNF_ADD_DATA

    Bom dia Pessoal. Alguém ja implementou a nova BADI de persistência J_1BNF_ADD_DATA, onde substitui os métodos FILL_HEADER e FILL_ITEM da BADI CL_NFE_PRINT. Gostaria de saber como estão tratando os campos não disponibilizados nas estruturas de modific

  • How Do I Display Quotation Marks in Dynamic HTML Text

    I'm using a dynamic text file that has some Quotation Marks that need to be displayed with the content on certain words in the TXT file. How do i display Quotation Marks inside a Dynamic text field? Please Advise. As soon as possible. Thanks

  • IDOC_ADAPTER: ATTRIBUTE_IDOC_RUNTIME

    Hello All, I have had an problem dropped on me.  The consultant left prior to the BPM going live and I have not worked with BPM before.  The error I an receiving is:   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --

  • How do I save my profile pic to my phone?

    Can't save it

  • BDC Programme

    I am trying to create a BDC program to load data to the technical vault using transaction cv02n. It fails with the message "Select an original application file first". This is because the BDC prog does not select a file from the "Originals" table at