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

Similar Messages

  • Reading values from lookup columns through custom workflow in SharePoint 2013

    We are able to read the values of text, number columns through custom workflow (via coding) in SharePoint 2013. However, we are not able to read values from lookup columns. So, request anyone to provide help on this.
    Thanks & regards,
    Aditya

    Hi,
    According to your post, my understanding is that you want to read values from lookup columns through custom workflow in SharePoint 2013.
    Since the workflow just doesn't get lookup fields, let's give it something static to work with instead. If we can capture the ID of the lookup field and store that as a static value in our list, the workflow can happily use that to look up our related.
    For more information, you can refer to:
    SharePoint 2013 Workflows and Lookup Columns
    Thanks,
    Linda Li                
    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]
    Linda Li
    TechNet Community Support

  • Read image from scanner

    i want to interact with hardware(scanner) in java
    i want to read image and store in database
    for this
    1.) i want to read image from scanner
    2.) how do i start scanner process
    from where i gonna start
    plz help me to interact with hardware

    Hi, I have faced a similar problem and solved it using the morena api http://www.gnome.eu/Twain/examples/studio.html
    Problem is the scanner works fine with TWAIN, but with SANE, it is totally failing. There is a permanent connection refusal form the scanner ip whenever
    i try to use a network scanner. I am not sure how to solve it. If anyone has solved this please revert back.
    Regards,
    Anthony

  • Read image from excelsheet using labview

    i need to know how to read image from excel sheet using Labview...m not able to get the appropriate property to display the image stored in excel sheet.
    thank you

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • Reading Images from JAR Files

    Hi,
    I am having a very difficult time being able to read images from a JAR file via my Applet. I have tried everything that I know about with no luck. The only way I can get this to work is to store the images individually in a sub directory of public_html on the websever. This works, but I would like the images to come down in a JAR file for performance reasons.
    I am using Internet Explorer 5.5 for my browser. I checked the options and everything seems to be in order, but......
    I would appreciate any feedback that anyone might have on this topic..........
    Thank You....

    once in a jar file i inserted a image
    the jar file on clicking starts an frame.
    so the image was for getting that image at the icon place at top and at minimized window
    i could not get that image from jar file by new imageicon().getimage();
    but i get the image if it is in the directory in which jar file is.....
    can one explain the reason

  • Read image from R3

    Hi everyone,
    How can I read images from R3?
    Regards
    Eduardo Campos

    you need to ask Microsoft to find out the property name/location under Microsoft Excel. 

  • I am facing a Problem with reading images from database

    Hi everybody..
    any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code... 
                    string connect = "datasource = localhost; port = 3306; username = root; password = ;"; 
                    MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
                    MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
                    MySqlDataReader reader; 
                    try
                        conn.Open(); // Opening Connection
                        reader = sda.ExecuteReader(); // Executing my Query..
                        while (reader.Read())
                            byte[] imgg = (byte[])(reader["Picture"]);
                            if (imgg == null)
                                pc1.Image = null;
                            else
                                MemoryStream mstream = new MemoryStream(imgg);
                                pc1.Image = System.Drawing.Image.FromStream(mstream);
    It says Parameter not Valid... i am reading all the images from database

    I agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
    to compare the imgg array data with the data before it was written to the database to see if the data matches.  I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
    byte count.
    An image is binary data.  The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data.  The solution usually is to use UTF8 encoding instead of the default ascii encoding. 
    Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
    jdweng

  • Reading Images from DB2 content Manager

    Has anybody have read images from IBM db2 content manager using oracel forms.
    any links will be helpfu;
    or any links to how to make windows API calls in forms 5.0.

    OK, I found Greg's reply and that fixed it, once I played with it a bit.
    "Cory McGinnis" <[email protected]> wrote:
    >
    I am displaying an html page from a <cm:select> but the images do not
    display.
    I have set up the dmsbase directory as per the samplePortal, and loaded
    the content.
    The HTML displays, but with errors for the images.
    Here's the select from the portlet:
    <cm:select contentHome="<%=ContentHelper.DEF_CONTENT_MANAGER_HOME%>"
    query="type='page'"
    id="textDocs"/>
    <es:forEachInArray array="<%=textDocs%>" id="aTextDoc" type="com.bea.p13n.content.Content">
    <p><cm:printDoc id="aTextDoc" failOnError="true" /></p>
    </es:forEachInArray>

  • Read images from external jar file (Sun's Java L&F Graphics repository)

    Hi!
    I don't know how to read images from an external jar file. Sun has a Java Look and Feel graphics repository that contains a lot of good images that can be used on buttons and so on. This repository is delivered as a jar file, containing only images, and I want to read the image files from that jar file directly without including them inside my application jar file. The application and image jar files will be in the same directory.
    I have absolutely no clue how to solve this. Is it necessary to include the images inside my application jar file or is it possible to have them separate as I want.
    Would really appreciate some help!
    Best regards
    Lars

    Hi,
    There is two ways :
    1) Add your jarfile to the classpath.
    Use the class loader :
    URL url = ClassLoader.getSystemResource("your/package/image.gif");
    Image im = (new ImageIcon(url)).getImage();
    or
    Image im = Toolkit.getDefaultToolkit().getImage(url);2)If you don't want to add the jar to the classpath you can use this (under jdk 1.4):
    import java.util.*;
    import java.util.jar.*;
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.*;
    public class ImageUtilities {
         public static Image getImage(String jarFileName, String fileName) {
              BufferedImage image = null;
              try {
                   JarFile jar = new JarFile(new File(jarFileName), false, JarFile.OPEN_READ);
                   JarEntry entry = jar.getJarEntry(fileName);
                   BufferedInputStream stream = new BufferedInputStream(jar.getInputStream(entry));
                   image = ImageIO.read(stream) ;
              catch (Exception ex) {
                   System.out.println(ex);
              return(image);
    }I hope this helps,
    Denis

  • 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

  • Read images from a jar file?

    Hello, I'm converting a 6i app to 10g. This app does a ton of read_image_file() calls to
    change GIF images on the screen based on user actions. In 6i the images are all stored on the local hard drive. The images are not icons for buttons, but images that appear in different locations on the screen.
    For 10g, is it possible to leave the images in a jar file and effectively read the images from that? Otherwise, I suppose I'm looking at using webutil functionality to download the jar file and unjar it into an images directory for reading from the client?
    Any best-practice scenario for this sort of thing?
    Thanks for any info,
    Gary

    We are migrating from 6i to 10g too. And I try to not use webutil. All my pictures (icons gif files) are in a jar file.
    Just make attention of the size of your pictures. The jar file is loaded when you launch the application (the first time, and after, only if the jar file has changed).

  • Need to read image from scanner

    Hi,
    I wnat to load image from scanner directly into forms. Then save it into table.
    Shahin

    Here we are..
    This is my "bean" for scanning over twain driver or SANE (linux)..
    I have used morena twain drivers (JNI), apache httpclient library for java (i need it for http communication between forms and database) and Itex pdf library for java.
    The bean has three options..
    1. you can select the twain device and start to scan
    2. you can view scanned images
    3. you can generate PDF from scanned images and store it to local disk or database..
    For example how the form look like:
    !http://freeweb.siol.net/peterv6i/scan1.jpg!
    On the first form you can start a new scann or just delete the temporary files in the local folder (user temporary folder).
    After you press the "scann" button the twain dialog apear
    !http://freeweb.siol.net/peterv6i/scan2.jpg!
    The dialog of twain device will startup. Here you can set everythig you can (scann area, colors, dpi ...)
    !http://freeweb.siol.net/peterv6i/scan3.jpg!
    The scanned images are transfered on local disk (temp folder). Every scanned images got timestamp value as name of the image (on the picture this are located in the select list)
    !http://freeweb.siol.net/peterv6i/scan4.jpg!
    If you click on the item the scanned image will aper on the screen
    !http://freeweb.siol.net/peterv6i/scan5.jpg!
    The last screen is for saving / generate a pdf from the array of images or image.
    !http://freeweb.siol.net/peterv6i/scan6.jpg!

  • How Read image from slingRequest

    Hi,
    We have a user input form which contains input file (image) selection. When user submits the form, we want to read the file selected by user and store it as base 64 encoded data. We have following code to do the same. This code gets executed when the form is submitted.
    //Read image data from slingRequest
    String userImage1 = slingRequest.getParameter("userImage1");
    //Apply base 64 encoding on the data received in slingRequest
    String encodedUserFile = "";
    byte[] userFileBytes = userImage1.getBytes();
    encodedUserFile = Base64.encodeBase64String(userFileBytes);
    These statements are not throwing any error. But, when I try to apply base 64 decoding on the contents available in 'encodedUserFile', its' not the image user uploaded. There seems to be some problem, which I am not able to figure out. Can someone please help me with this?

    Hi,
    You need to use the Sling RequestParameter interface to get an uploaded file.
    See:
    http://sling.apache.org/site/request-parameters.html
    http://sling.apache.org/apidocs/sling6/org/apache/sling/api/request/RequestParameter.html
    Regards,
    Justin

  • Read image from file

    Dear all,
    I would like to know how to read a gif or jpeg image from file to a binary stream?
    So that I can transfer through the internet using a http POST request.
    Thank you very much.

    Use FileImageInputStream.. See api docs for further reference
    Cheers
    -P

  • Reading images from URL without knowing the format

    I have an image url like this: http://example.com/image.php?id=5605. How do I get the actual image from such an URL? I have tried using ImageIO.read and loading the url directly into an ImageIcon without success.

    yeah,
    I knew a little about linearization and but the idea was to help quick loading the very first page of a document while the rest of the data still is arriving. Not exactly what I needed here.
    Anyway, you have just confirmed my fears, I will have to know the document size, where exactly it ends on my stream, in order to correctly load it.
    I appreciate your help sir. Thanks for your time.
    Best regards.

Maybe you are looking for

  • Multiple Albums with same content on iPod

    I just downloaded a ton of new music, from a differnt site than iTunes. When I sync the new music to my iPod nano (4 gen.), one artist in particular has some trouble. I go to them and there are 4 or 5 of the same album that say 1 song, 2 songs, 3 son

  • Cannot find tnsnames.ora error message

    We are using oracle 10.2.0.1 via Toad. I get a cannot find tnsnames.ora file error message and see only a tnsnames.ora file in the sample file under the c:\ORACLE\product\10.2.0.1\NETWORK\ADMIN\ directory. Do I need to create this file, and if so how

  • Audio extraction from video?

    I have a few songs from concerts, am I able to take just the audio from the video and convert it into an mp3 file? Thanks!

  • Disabling crs startup in 10.2.0.3

    hi all, we have a 2 node cluster running 1.2.0.3 on the linux itanium platform runnING rhel4. One of our nodes has an issue with one of it's fiber channel hba's and has been causing node evictions from the cluster because we have been loosing access

  • How to avoid dock while certain apps runnin?

    heya, while using logic, i have to move the mouse to the edges of the screen for certain tasks which almost invariably brings up the dock. can i disable the dock completely while certain apps r runnin, then jus comm-tab to the finder if i need to use