How to import images into BLOB datatypes

Dear All,
I'm trying to import image into BLOB table type.I'm executing this SQL commands but found error.
ORA-22288
ORA-06512
Please help me i'll be thank full.
Regards
FAHEEM LATIF
CREATE OR REPLACE DIRECTORY images AS 'C:\IMAGES';
CREATE TABLE test007 (column1 BLOB);
DECLARE
l_bfile BFILE;
l_blob BLOB;
BEGIN
INSERT INTO test007 (column1)
VALUES (empty_blob())
RETURN column1 INTO l_blob;
l_bfile := BFILENAME('IMAGES', 'MyImage.gif');
DBMS_LOB.fileopen(l_bfile, Dbms_Lob.File_Readonly);
DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile));
DBMS_LOB.fileclose(l_bfile);
COMMIT;
END;
/

I know your original pl/sql routine contained a COMMIT, but did you use the same code with the COMMIT? If not, are you checking the table from a different session?
I ran your same code and it worked without issues. Are saying if you do a SELECT COUNT(*) from test007 it returns zero rows?

Similar Messages

  • How to import image into iPhoto that was modified in Photoshop?

    Hi,
    I figured this out once, but I can't remember what I had to do.
    I modified an image using Photoshop and saved it as a jpg. Now I can't import it into the iPhoto library. I know there was some options I had to set in Photoshop. Can anyone tell me what they are?
    Thanks a lot,
    Bruce
    ps. the original image before editing was in the iPhoto library. All i did was to crop it and save it under a new name.

    When you saved your edit under a new name, did you save it into the iPhoto Library folder? If so, this is why you are unable to import it now. You'll need to go into the library from the Finder and drag that photo out to the Desktop. Then you'll be able to import it into your library. Be careful when you are in the iPhoto Library folder in the Finder, as any changes you make to the files and folders that are there (correctly placed by the app) will damage your library.
    Regards.

  • Advice, Import images into blob

    Hi, can anyone offer any advice please.
    I need to import about a million image files currently stored on one of our novell servers (same drive but under many folders and sub-folders, unique file names)
    into an Oracle database (blob column).
    From a pl/sql database procedure.
    We are using Oracle 8.1.7 on a Unix sun solaris box.
    Right now the only way I know is to copy all million image files to the unix database server so that the dbms_lob package can see the files.
    Does anyone have any suggestions?
    Thanks
    Dave
    null

    I know your original pl/sql routine contained a COMMIT, but did you use the same code with the COMMIT? If not, are you checking the table from a different session?
    I ran your same code and it worked without issues. Are saying if you do a SELECT COUNT(*) from test007 it returns zero rows?

  • How to import images into keynote without losing quality?

    Whenever I import (either by dragging or through keynote import) high resolution images (either jpg or png) at high resolution (say 1920x1280) into any keynote presentation (1280x1024) it somehow automatically gets compressed into a really ugly lowres image. This, in my case, makes it impossible to present designs properly. Is this a setting or am I importing them wrong?

    I think this is your answer.
    Images in JPEG format remain JPEG images; other formats are converted to TIFF. After an image has been downsampled, you can’t restore it to its original size by clicking Original Size in the Metrics inspector. To avoid downsampling and use images at their original size, turn off automatic downsampling inKeynote preferences.
    http://manuals.info.apple.com/en_US/Keynote09_UserGuide.pdf

  • How to import image into iphoto

    Does anyone know you to import an image (for example, a google image file) into iphoto)   Drag and drop isn't working
    thanks for you help

    What version of iPhoto and system are your running? What is the format of the image file?  Are you able to open the image file with Preview?
    Where is the image file from and what happens when you try dragging the file onto the iPhoto icon in the Dock or into the open iPhoto window?
    OT

  • How to import images into Lightroom

    Good afternoon [Edit]
    I have all of my photographs backed up on a Westeren Digital hard drive. It is called "My Book K" How can I get that into LR so I can imoport, or export from LR?  Also is it hard on my external hard drive to leave it on all the time?
    Kenny
    Message was edited by: Brett N

    Hi Kenny,
    You have to import the photos on the Western Digital hard drive in Lightroom.
    Open Lr, go to Library and Grid View, and then click on the  <Import> button - lower left.
    This will open the Import Dialog. On the left side you will see the <Source> panel. It lists your drives and folders. Select your Western Digital and in it the folder you want to import from.
    Then at the top center of the Import Dialog select <Add>. This will import the photos in Lightroom but will leave them on the hard drive where they currently are.
    Then click on the <Import> button - lower right.
    If you want to work in Lightroom on the photos that are on the external drive, it has to be <on> - obviously. But when you are not working in Lr you can switch it off. It is not "hard' on the drive to leave it on but it has spinning disks that can wear out - eventually. The less spinning they have to do the longer it may last. The emphasis is on "may" - a hard drive can fail any time. If you are worried about his, get a second external hard drive and make backup copies of your photos to it.

  • How to save image into blob:java.sql.SQLException: ORA-01465:nvalid hex

    hi all,
    I am trying to save an image (blob) into oracle. When i try this i am getting following error.
                      java.sql.SQLException: ORA-01465: invalid hex number
                             BLOB blob = BLOB.createTemporary(con , false, BLOB.DURATION_SESSION);
                       String dir = "C:\\opt\\temp";
                       File binaryFile = new File(dir+"/"+filename);
                                FileInputStream instream = new FileInputStream(binaryFile);
                          OutputStream outstream = blob.setBinaryStream(1L);
                          int size = blob.getBufferSize();
                          byte[] buffer = new byte[size];
                          int length = -1;
                          while ((length = instream.read(buffer)) != -1)
                            outstream.write(buffer, 0, length);
                          instream.close();
                          outstream.close();
                                  System.out.println("blob:>>>>>>"+blob);
                    String sqlText =
                              "INSERT INTO test_fileupload (filename, blobfile) " +
                              "   VALUES('" + filename + "','" + outstream  + "')";
                          st.executeUpdate(sqlText);
                          con.commit();In the above Insert statement i tried with "blob" insted of "outstream" still same but when i try with the string "3s34se"
    it is inserting into database..
    I am new to blob can any one explain me why is like that.
    Thanq in adv.
    Edited by: Ajayuppalapati on Nov 21, 2008 4:40 PM

    ORA-01465: invalid hex number
    [http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=3&t=012434]
    [http://forums.sun.com/thread.jspa?threadID=261091&forumID=31]

  • How to import images into dashboard

    Hi
    im using obiee11g
    in dashboard 10g we directly load the images from our local drives
    but in 11g is it possible or not
    im tried but i did nt get that
    im using 11g client
    server in linux
    how this can be solve
    please give ur suggesstion

    Paths for Custom Images or fmap
    Syntax: fmap:images/imagename.imageformat
    for e.g: fmap:images/regport_geographical.jpg
    Possible location for images
    Drive:\Oracle\Middleware\Oracle_BI1\bifoundation\web\app\res\s_blafp\images
    Drive:\Oracle\Middleware\user_projects\domains\bifoundation_domain\servers\bi_server1\tmp\_WL_user\analytics_11.1.1\7dezjl\war\res\s_blafp\images
    Drive:\Oracle\Middleware\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp\.appmergegen_1291264099332\analytics.ear\ukjjdc\res\s_blafp\images
    Appreciate if you mark as correct
    Edited by: Srini VEERAVALLI on Dec 3, 2012 8:49 AM

  • Importing images into projects

    can any1 please tell me how to import images into my netbeans IDE projects?this should be such that the jar file that is created displays them correctly- i am having this said problem with .jar files.
    plz help!!

    i use a function createImageIcon(ImageIcon icon) wfor which i provide a definition.
    the definition is as given in the java tutorial as follows
    protected static ImageIcon createImageIcon(String path)
    java.net.URL imgURL = LabelDemo.class.getResource(path);
    if (imgURL != null) {
    return new ImageIcon(imgURL, description);
    } else {
    System.err.println("Couldn't find file: " + path);
    return null;
    the program executes perfectly from the IDE when i use the run finction of F6 key. I use netbeans IDE. the images are kept in a folder named images in the 'src' folder of the project. this folder is used to store source files by the IDE. The main thing is i put the images in such a place that the program executes perfectly without errors from the IDE. using the IDE which shows the contents of a .jar file, i verified that the images are indeedd present in the JAR file. however i still continue to get the same error. infact after add ing the images folder and running a 'clean and build' operation , the only difference is that the jar file, which still doesnt display images on buttons, labels etc has increased in size confirming tht the images have been added- i also verified this from the command line.
    but the same problem persists.

  • What is the best format to import images into iBA? How should I compress my images before importing? What is the best file format? PNG? Jpeg?

    What is the best format to import images into iBA? How should I compress my images before importing? What is the best file format? PNG? Jpeg? I'm trying to figure out the best file format / compression for importing images into iBA. Also, does anyone know how iBA will compress the file? Are the assets attached (like a website) or flattened out? Does anyone know how iBA handles this? Many many thanks to anyone with insight into this.

    This question is largely answered by the following thread...
    https://discussions.apple.com/message/17805700#17805700

  • How to import images on Nexus

    OK, Adobe do not want you to use Google or any cloud but their own when importing images into PS Touch. Selfish and very naive. It limits what could be a great app and turns it into nothing more than a occasional plaything. But there is a way.
    Install SketchBook Pro. This app will link to just about anything, these people know how to please, import your image and save it locally. You can then open it in PS Touch. Simple. Doesn't take too long, and until Adobe accept the fact there is a big wide world out there, will do the job.
    Have fun.

    To be fair, Creative Cloud does give you 20 GB of space for free. (Yeah, it's another account to manage but then again I have multiple accounts with different services anyway.)
    I have SketchBook Pro as well; it's a drawing app. It does its job quite well being a drawing/illustration app but it isn't Photoshop which excels at image editing. (I understand some digital artists use Photoshop to draw but that's always seemed like a little overkill to me. Meh.)

  • How to import images that have the same name as images already imported

    I am trying to import images into LR3.  I have a number of images with duplicate names.  Some of them are duplicate images that I simply have stored in different directories and some are images that are not duplicates but have the same name.  LR3 refuses to import any images that has the name of an image that has already been imported.  Is there anything I can do about this.  If not, it kind of makes the softwares useless to me.
    In hopes of a solution . . .
    --Kenoli

    Thanks.  I'm sure making sure all file names are discrete makes sense.  I guess I need to find some kind of bulk re-name utility. 
    Additionally, I am dealing with a very large set of unorganized images and one of the uses I would like to put LR3 to is to organize the images into directories and get rid of duplicates while inspecting them to make sure that I don't trash differing images with the same names.  One of the challenges is identifying these images so I can re-name them.
    I have been working with Apple's Aperture, which doesn't rely simply on the name to identify images since it uses a more complicated algorithm to differentiate images from each other.  It is one thing I really like about Aperture.  What I like about LR3 is that it lets me use actually file directories to store images rather than moving them into its own file system like Aperture does.  I don't like having files locked into a system that is software dependent.
    Also, I finally found the checkbox that tells LR to import "duplicates."  I couldn't find it before.  I don't find LR3 as intuitive as I'd like.  I've always had to spend more time figuring out how Adobe software does things than I would like. I've had little luck with Adobe's support site, aside from this forum.
    Thanks for you helpful suggestions.
    --Kenoli

  • Auto import images into aperture...and continue importing...

    i know that there is a script to import images into aperture, but i need to use this with a tethered camera....so i use a canon app to shoot files to a folder and as the files come in, i need them to get imported as they keep coming in....i am only referencing them, so they are actually staying within the folder....i can import the files but i don't know how to/which command "keeps checking the folder for new files that came in" hope this makes sense....
    i know that there is a "hot folder" app available which seems to be a automator app, but it is superslow and only brings in every 4th or 5th image (and sometimes just brings everything to a halt...)

    i know that there is a script to import images into aperture, but i need to use this with a tethered camera....so i use a canon app to shoot files to a folder and as the files come in, i need them to get imported as they keep coming in....i am only referencing them, so they are actually staying within the folder....i can import the files but i don't know how to/which command "keeps checking the folder for new files that came in" hope this makes sense....
    i know that there is a "hot folder" app available which seems to be a automator app, but it is superslow and only brings in every 4th or 5th image (and sometimes just brings everything to a halt...)

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • How to import Photos into Active Directory

    Hi -
    IT Director asked me to import employees pictures into Active Directory so that we can use them in Outlook, SharePoint, Lync etc.
    Do you know how to import pictures into Active Directory?

    Thumbnailphoto Attribute in active directory is responsible for adding photos to Active directory.
    By Default Replication of this attribute will be disabled to Global catalog server. To make use of this facility we will have to enable replication of this attribute to Global Catalog. ( To accomplish this you will have to edit the schema using Active directory
    schema snap in).
    Refer Below link which explains about enabling the replication of Thumbnailphoto attribute to Global catalog.
    http://www.msexchange.org/articles_tutorials/exchange-server-2010/management-administration/configuring-using-display-picture-exchange-server-2010.html
    Requirements
    Minimum requirement for your exchange enviornment to use this - Exchange 2010.
    Exchange 2007 Don't support uploading photos AFAIK.
    Domain controller should be running with atleast windows server 2008 or later. And
    schema has to be windows server 2008
    Additionally for your information,
    How to remove the uploaded photos?
    Either You can edit the Thumbnailphoto attribute using ADSIedit and remove the entry which is assocaited with Thumbnailphoto attribute.
    Or,
    Try this.
    The Import-RecipientDataProperty and Export-RecipientDataProperty cmdlets allow you to import and export the photo blob to and from
    thumbnailPhoto attribute, but there's no Remove-RecipientDataProperty cmdlet to remove it. You can use the
    RemovePicture switch of Set-Mailbox cmdlet to remove a user's photo. For example:
    Set-Mailbox "Bharat Suneja" -RemovePicture
    Check out the below link which explains in and out of uploading photos,
    http://blogs.technet.com/b/exchange/archive/2010/06/01/gal-photos-frequently-asked-questions.aspx
    http://blogs.technet.com/b/ilvancri/archive/2009/11/17/upload-picture-in-outlook-2010-using-the-exchange-management-shell-exchange-2010.aspx
    To know about uploading photo using powershell ask this question in powershell forum
    http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads
    Regards,
    _Prashant_
    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

Maybe you are looking for

  • Specs for XML in AdvancedDataGrid?

    Hi All, I am trying to get XML-data generated by a PHP-page (based on data out of a MySQL-database) displayed in a AdvancedDataGrid. I cannot get it to work. Comparison with XML-data constructed with a XML-tag in Flex (mx:XML) has taught me that the

  • The Contacts Button in Prefs

    So yeah, I've been wanting to sync my contacts for a good while now (even since I got my first iPod) and was wondering where the contact button is in the Preferences. See I know where the iPod prefs are and that it's supposed to be right there, but i

  • How to change full fudate as a repair full request.

    Hi experts, As per my requirment i want to run repair full but i ran full update so i need to change this full update to repair full, can any one help me. Manythanks in advance David

  • 9iAS 1.0.2.2.2 install/migration questions

    We are migrating 9iAS 1.0.2.2.2 from two-box to three-box scenario as explained below. We have a plan of action for this migration. I want to know whether this is the proper way to do the migration. Existing Scenario : ( 9iAS 1.0.2.2.2 ) Box 1 : Port

  • What on Earth is the matter with titles and duplicating?

    I'm just about fed up with this amateurish product passing itself off as a professional tool. I can't fathom how this thing has gotten past version 8 with such blatant bugs- Make a title.  Duplicate it.  Change the copy.  Original changes in final re