Reading Blob with wrong size

Hi,
I stored a .jpg file in a BLOB using Oracle 9i.
When i try to read it, i get the wrong size for the Blob.length() ...
Please can someone help ...
File file = new File(fileLoc);
InputStream is = new FileInputStream(file);
long length = file.length();
OutputStream outstream = blob.setBinaryStream(length);
byte[] buffer = new byte[(int)length];
int readlength = -1;
while ((readlength = is.read(buffer)) != -1)
         outstream.write(buffer, 0, readlength);
is.close();
outstream.flush();
outstream.close();
// TRY TO READ NOW
// Here comes some JDBC stuff ...
File newFile = new File("blob.jpg");
FileOutputStream fos = new FileOutputStream(newFile);
InputStream is2 = blob2.getBinaryStream();
byte[] bb = new byte[(int)blob2.length()];
int readlength2 = -1;
while ((readlength2 = is2.read(bb)) != -1)
        fos.write(bb, 0, readlength2);
is2.close();
fos.flush();
fos.close();

I don't see anything wrong with it myself... assuming that your changes are being committed somewhere...
Somewhere in the collection of examples at
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html
is a good working example with a CLOB, which should be the just about the same. I think there was also a BLOB example, but I'm not sure...

Similar Messages

  • Create custom document with wrong size

    Hi,
    I have a problem (on Sun Solaris 5.8) when I create custom document with more than 10MB size.
    I've created an agent which detects the events on a custom data type
    MYDOCUMENT (extension .mydoc).
    When I put a new document test1.mydoc (size of 10MB for example), my agent detects the new document, creates a copy, sets the class object to
    MYDOCUMENT , removes the original document and puts the copy into the same folder.
    But sometimes, the copy created has a wrong size (less then 10MB).
    How can I configure the nfs server to be sure that the agent waits for the complete size of the added document.
    I need HELP !!!!
    Thanks

    Hi Pavithra,
                    yeah you can create your custom table by entering fields in Standard.  for more details
    refer below screen shots
    Regards,
      Thangam.P

  • Disk Utility partitions with wrong sizes

    I'm trying to partition an external drive do clone/backup my TiBooks harddrive, but, I can't get DU to get the right partition sizes. Using 80 GB 2.5" drive (same size as my current internal drive). I make four partitions, set the sizes, then do a partition, and after the partition is done my partitions are now different sizes. I've dried 'Locking' them, but, still doesn't work.
    I played with the sizes, and still can't get the partition sizes I set up to partition correctly.

    If the two drives are not exactly the same, then don't expect to be able to partition both of them exactly the same. Different drives will have different specifications and are not identical simply because they are both advertised as 80 GB drives. Even two drives with the same model number from the same manufacturer may differ if the firmware isn't the same on each due to different dates of manufacture. Why is it so critical for you that they be exactly the same?

  • Button displayed with wrong size in gridbag layout

    I am having a slight problem with gridbiglayout as it is not diplsying one of my buttons properly.
    The code for my panel is given below. A screenshot of the ouput from my program can be seen at
    http://i54.photobucket.com/albums/g117/vamega/Program%20Screenshots/programscreenshot.jpg
    U can probably see that the button on the top right is not being displayed correctly.
    It is supposed to be show donate and is the donateBookButton in the code below.
    Any ideas on how to fix this would be really appreciates
    package madiath.varun.vlibrary;
    import java.awt.Color;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.GridLayout;
    import java.awt.Insets;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import javax.swing.BorderFactory;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.border.Border;
    import javax.swing.border.TitledBorder;
    * @author varunm
    public class MainPanel extends JPanel
        private GridBagLayout gb = new GridBagLayout();
        private GridBagConstraints gc = new GridBagConstraints();
        private GridLayout gridL = new GridLayout(1,3,10,10);
        private Insets thisPanelsInsets = new Insets(10,10,10,10);
        protected JButton returnBookButton;
        protected JButton borrowBookButton;
        protected JButton donateBookButton;
        protected JPanel searchPanel;
        protected JComboBox searchMenu;
        protected JTextField searchText;
        protected JButton searchButton;
        protected JTable booksTable;
        protected LibraryTableModel libTableModel;
        protected ResultSetTableModel resTableModel;
        protected JScrollPane tableScrollPane;
        protected TableSorter sorter;
        private String[] searchOptions = {"By Title", "By Author", "By Subject", "By ISBN", "Web Reviews"};
         * Creates a new instance of MainPanel
        public MainPanel(Librarian librarian, ResultSet InitialData) throws SQLException
            initComponents(librarian, InitialData);
        private void initComponents(Librarian librarian, ResultSet InitialData) throws SQLException
            borrowBookButton        = new JButton();
            returnBookButton        = new JButton();
            donateBookButton        = new JButton();
            searchPanel             = new JPanel();
            searchMenu              = new JComboBox();
            searchText              = new JTextField();
            searchButton            = new JButton();
            booksTable              = new JTable();
            tableScrollPane         = new JScrollPane();
            resTableModel = new ResultSetTableModel(InitialData);
            sorter = new TableSorter(resTableModel);
            sorter.setTableHeader(booksTable.getTableHeader());
            booksTable.setModel(sorter);
            tableScrollPane.setViewportView(booksTable);
            setLayout(gb);
            borrowBookButton.setText("Borrow");
            returnBookButton.setText("Return");
            donateBookButton.setText("Donate");
            searchButton.setText("GO");
            searchText.setColumns(10);
            searchPanel.setLayout(gridL);
            searchPanel.add(searchText);
            searchPanel.add(searchMenu);
            searchPanel.add(searchButton);
            Border searchBorder = BorderFactory.createMatteBorder(2,2,2,2,new Color(61,137,212));
            searchBorder = BorderFactory.createTitledBorder(searchBorder,
                    "Search",
                    TitledBorder.LEFT,
                    TitledBorder.ABOVE_TOP);
            searchPanel.setBorder(searchBorder);
            searchMenu.setModel(new DefaultComboBoxModel(searchOptions));
            gc.gridx = 1;
            gc.gridy = 1;
            gc.gridheight = 1;
            gc.gridwidth = 1;
            gc.insets.set(5,0,5,0);
            gb.setConstraints(borrowBookButton, gc);
            gc.gridx = 2;
            gb.setConstraints(returnBookButton, gc);
            gc.gridx = 3;
            gb.setConstraints(donateBookButton, gc);
            gc.gridy = 2;
            gc.gridx = 2;
            gc.gridwidth = 1;
            gb.setConstraints(searchPanel, gc);
            gc.gridx = 1;
            gc.gridy = 3;
            gc.gridwidth = gc.REMAINDER;
            gc.weightx = 10;
            gc.weighty = 5;
            gc.insets.set(0,0,0,0);
            gc.fill = gc.BOTH;
            gb.setConstraints(tableScrollPane, gc);
            add(borrowBookButton);
            add(returnBookButton);
            add(donateBookButton);
            add(searchPanel);
            add(tableScrollPane);
        public Insets getInsets()
            return thisPanelsInsets;
    }

    I had done it using a workaroud of adding an ipadx value of 10 to the button.
    If anyone can find a better solution please i would be very grateful. Executable code can be found below. This time i have added a main method. sorry about forgetting to do so last time :-()
    import java.awt.Color;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.GridLayout;
    import java.awt.Insets;
    import javax.swing.BorderFactory;
    import javax.swing.DefaultComboBoxModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.JTextField;
    import javax.swing.border.Border;
    import javax.swing.border.TitledBorder;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.JFrame;
    public class MainPanel extends JPanel
        private GridBagLayout gb = new GridBagLayout();
        private GridBagConstraints gc = new GridBagConstraints();
        private GridLayout gridL = new GridLayout(1,3,10,10);
        private Insets thisPanelsInsets = new Insets(10,10,10,10);
        protected JButton returnBookButton;
        protected JButton borrowBookButton;
        protected JButton donateBookButton;
        protected JPanel searchPanel;
        protected JComboBox searchMenu;
        protected JTextField searchText;
        protected JButton searchButton;
        protected JTable booksTable;
        protected DefaultTableModel model;
        protected JScrollPane tableScrollPane;
        private String[] searchOptions = {"By Title", "By Author", "By Subject", "By ISBN", "Web Reviews"};
         * Creates a new instance of MainPanel
        public MainPanel()
            initComponents();
        private void initComponents()
            borrowBookButton        = new JButton();
            returnBookButton        = new JButton();
            donateBookButton        = new JButton();
            searchPanel             = new JPanel();
            searchMenu              = new JComboBox();
            searchText              = new JTextField();
            searchButton            = new JButton();
            booksTable              = new JTable();
            tableScrollPane         = new JScrollPane();
            model = new DefaultTableModel(
                    new Object[][]
                {"something","something","something","something"},
                {"something","something","something","something"},
                {"something","something","something","something"},
                {"something","something","something","something"}
                    new String[]{"Coloum 1","Coloum 2","Coloum 3","Coloum 4",}
            booksTable.setModel(model);
            tableScrollPane.setViewportView(booksTable);
            setLayout(gb);
            borrowBookButton.setText("Borrow");
            returnBookButton.setText("Return");
            donateBookButton.setText("Donate");
            searchButton.setText("GO");
            searchText.setColumns(10);
            searchPanel.setLayout(gridL);
            searchPanel.add(searchText);
            searchPanel.add(searchMenu);
            searchPanel.add(searchButton);
            Border searchBorder = BorderFactory.createMatteBorder(2,2,2,2,new Color(61,137,212));
            searchBorder = BorderFactory.createTitledBorder(searchBorder,
                    "Search",
                    TitledBorder.LEFT,
                    TitledBorder.ABOVE_TOP);
            searchPanel.setBorder(searchBorder);
            searchMenu.setModel(new DefaultComboBoxModel(searchOptions));
            gc.gridx = 1;
            gc.gridy = 1;
            gc.gridheight = 1;
            gc.gridwidth = 1;
            gc.insets.set(5,0,5,0);
            gb.setConstraints(borrowBookButton, gc);
            gc.gridx = 2;
            gb.setConstraints(returnBookButton, gc);
            gc.gridx = 3;
            gb.setConstraints(donateBookButton, gc);
            gc.gridy = 2;
            gc.gridx = 2;
            gc.gridwidth = 1;
            gb.setConstraints(searchPanel, gc);
            gc.gridx = 1;
            gc.gridy = 3;
            gc.gridwidth = gc.REMAINDER;
            gc.weightx = 10;
            gc.weighty = 5;
            gc.insets.set(0,0,0,0);
            gc.fill = gc.BOTH;
            gb.setConstraints(tableScrollPane, gc);
            add(borrowBookButton);
            add(returnBookButton);
            add(donateBookButton);
            add(searchPanel);
            add(tableScrollPane);
        public Insets getInsets()
            return thisPanelsInsets;
        public static void main(String[] args)
             JFrame frame = new JFrame();
             frame.add(new MainPanel());
             frame.pack();
             frame.setVisible(true);
    }

  • Tomcat 5 under NetBeans 3.6 read files with wrong path

    The problem is quite simple:
    I have XSLT file which I read in my servlet. Under Tomcat 4.1.29 (and earlier till 4.0.1) everything works fine, but Tomcat 5 under NetBeans 3.6 produces an error while he tries to read a file not from a directory
    $CATALINA_HOME/webapps/..
    but from a dir
    $CATALINA_HOME/bin/webapps/...
    anybody knows how to fix it? Why he wants to start reading from "bin" directory
    P.S. Tomcat runs under WIn2000

    Actually, sorry, it's more complicated than that... the rules for <xsl:include> say that by default the transformer will look in the same directory as the XSLT file that's doing this include. But that only works if the transformer knows what directory that is. So if you give the transformer an InputStream containing the XSLT (e.g. by using getResourceAsStream), it has no way of knowing what directory it came from. Use the version that creates a File object for the XSLT, and wrap that in a StreamSource when passing it to the transformer. That works for me.

  • Problem with Pro*C reading BLOB field from Oracle 10g

    Hello Experts,
    We have a Pro*c application which is reading the BLOB data fields (a PNG image file) from Oracle data base. It holds the BLOB fields returned from the SQL query into a Unsigned Char structure in Pro*C. The program used work fine on AIX 32 – bit 4.3 and Oracle 8.1 environment.
    Recently, we have upgraded the environment to AIX 64-bit 5.3 and Oracle 10g.Since after the Pro*c program has problem in reading the Blob filed.
    Below is the query we are trying to execute –
    EXEC SQL
    SELECT
    signtre_image, image_file_name_ext
    INTO
    :msipLocalImage INDICATOR :msipLocalImage_i,
    :file_name_ext INDICATOR :file_name_ext_i
    FROM
    dcs_sign
    WHERE
    signtre_nbr = :signtre_nbr;
    Here signtre_image is the BLOB fields and msipLocalImage is a Pro*C structure define as below –
    typedef struct tagSignImage
    long len; /* Image length */
    unsigned char img[1]; /* Pointer to first byte. */
    } MOTS_SIGN_IMAGE;
    The quesry does not give any error or exception message in the Pro*C , program just stops at the point of executing the quesry..When we run the query commenting the BLOB filed it works fine. Also, the query runs good when we run it in the Oracle editor.
    There seems to be problem with the way we are reading the BLOB field in the new Oracle 10g enviromet.
    Does any body have any idea what’s wrong with this query? We really need it to work.
    Any Help will be greatly appreciated.
    Thanks,
    - Rajan Yadav

    Thanks a ton for your response.
    We made the necessary changes as suggested by you.This time we got another flavour of error - SQL Error Code - Inconsistent error while reading BLOB.
    Another thing we noticed is that the data field which we are trying to read is defined as LONG RAW instead of a BLOB in data base.
    Are these two things related in any sense or is there anything else which is causing the error.
    Once again Thanks for your help.
    - Rajan Yadav

  • Message reads 'wrong size paper'. it's not.

    HP officejet 6500A plus on a windows 7 computer.  prints fine using the copier function but when trying to print a page from the computer the paper jams and the message reads 'paper jam or wrong size paper'.  it's standard 8-1/2 x 11 white paper.  printing problem started about a week ago.  nothing new on the computer.  i've rebooted the printer and the computer with no improvement.

    more information.  i reinstalled the software.  no change.  i tried to print a test page.  didn't work.  i printed a diagnostic page and that DID work.  the information wasn't helpful but it did come off the computer which i haven't been able to do.

  • Write blobs to olite with VB and read/display with jsp

    How can I insert an image BLOB with Visual Basic into OLite 9i and afterwards read it again with JSP to display the image BLOB?

    Sure. There is even sample code for both VB and JSP in the Mobile SDK.
    ORACLE_HOME\Mobile\Sdk\Examples\BLOB Manager\SourceCode
    ORACLE_HOME\Mobile\Sdk\wtgsdk\src\sample6

  • AEX CS3 error  {SetOutputWorld called with a world of the wrong size}

    I am getting the following message:
    After Effects error: internal verification failure, sorry! {SetOutputWorld called with a world of the wrong size}
    ( 78 :: 4 )
    Any suggestions?

    Check this:
    http://aeerrors.myleniumstuff.de/?p=547
    Beyond that, you will have to provide more info on what you actually do. Could be a couple of things from the CoDec issues mention in my collection to outdated plug-ins doing something weird...
    Mylenium

  • Eprint printed .doc with a wrong size!!

    my printer is C310a
    when i printed my  A4 .doc document, it printed out with a wrong size and it's all of them are bigger than the actual size!
    Please help me to slove this.

    Hi jefferl,
    Welcome to the HP Support Forums.  I understand that when printing a .doc type document with your Photosmart C310a printer, that the font of document seems to be larger than requested.
    The font and its size are set by the program you are using and/or the program used to create the document. If you need to change the font and its size open the document in a program where you can edit the font. Mostly likely this document would have been created using Microsoft Word or Microsoft WordPad and you can use either of them to modify the font size.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Help: JPanel/JFrame display complexities, wrong size

    I am trying to make a simple game of worms.I wan't to draw a rectangle in the center of the window where in the middle the game is played and on the outside score, lives and other such things are displayed. The problem is the rectangle won't draw properly because the window is the wrong size and I don't know if it is something I am doing wrong with the panel or frame.
    import javax.swing.*;
    import java.awt.*;
    public class DemoWormPanel extends JPanel implements Runnable{
        private static final int WIDTH = 600, HEIGHT = 400;
        private Graphics dbG;
        private Image dbImage;
        private Thread animator;
        private boolean running = false;
        private Rectangle walls;
        public DemoWormPanel() {
            super();
            setSize(WIDTH,HEIGHT);
        public void startGame() {
            if (animator == null) {
                animator = new Thread(this);
                animator.start();
            running = true;
            //defining game walls at 50 pixels within panel border
            walls = new Rectangle(50, 50, WIDTH - 50, HEIGHT - 50);
        public void gameRender() {
            if (dbImage == null) {
                dbImage = createImage(WIDTH, HEIGHT);
                if (dbImage == null) {
                    System.out.println("Error creating double buffer");
                    System.exit(0);
                dbG = dbImage.getGraphics();
            dbG.setColor(Color.black);
            dbG.fillRect(0,0,WIDTH,HEIGHT);
            dbG.setColor(Color.white);
            dbG.drawRect(walls.x, walls.y, walls.width, walls.height);
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            g.drawImage(dbImage, 0, 0, this);
            g.dispose();
        public void update(Graphics g){
            paint(g);
        public void run() {
            while (running) {
                gameRender();
                repaint();
                try {
                    Thread.sleep(1000/50);
                } catch (InterruptedException e) {}
            System.exit(0);
        public static void main(String[] args) {
            DemoWormPanel wp = new DemoWormPanel();
            JFrame f = new JFrame();
            f.setTitle("Worms");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(wp);
            f.setSize(WIDTH, HEIGHT);
            f.setVisible(true);
            wp.startGame();
    }Somewhere in there is my problem.
    What happens is that the right and bottom walls of the Rectangle are cut off of the screen because the window is not the right size. I changed the code to determine if the coordinates of the walls were accurate every iteration and they were. I also made it check the width and height every iteration by printing out this.getWidth() and this.getHeight() and found that instead of a 600 x 400 window, I have a 584 x 364. I also tried changing the panel and frame's size methods to make a new dimension instead of setting it directly from my constants and it had no effect. I also added directly to those constants to make it precisely 600 x 400 but the rectangle is still cut off, so maybe I also have a graphics issue. The only other potential issue I can think of is that I have Vista but I looked around here and searched google and found no similar issues to this.
    I am not new to java but I am also not advanced. I just started using java again after about 6 months and I have made a pong game before without this problem, on another computer though.I am at my wits end. I'll check for responses tomorrow and thank you for any help or insight you can offer.

    the problem is here
    walls = new Rectangle(50, 50, WIDTH - 50, HEIGHT - 50);
    at best the right/bottom walls will equal the frame's dimensions. try it as
    walls = new Rectangle(50, 50, WIDTH - 100, HEIGHT - 100);
    but this won't get you exactly what you want, due to the titlebar height (30?)
    slightly different version
    import javax.swing.*;
    import java.awt.*;
    class DemoWormPanel extends JPanel {
        private static final int WIDTH = 600, HEIGHT = 400;
        public DemoWormPanel() {
            setBackground(Color.BLACK);
            setPreferredSize(new Dimension(WIDTH-100,HEIGHT-100));
        public static void main(String[] args) {
            DemoWormPanel wp = new DemoWormPanel();
            JFrame f = new JFrame();
            f.setLayout(new GridBagLayout());
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(wp,new GridBagConstraints());
            f.setSize(WIDTH, HEIGHT);
            f.setVisible(true);
    }

  • Oracle 9i reading BLOB performance issues

    Windows XP Pro SP2
    JDK 1.5.0_05
    Oracle 9i
    Oracle Thin Driver for JDK 1.4 v.10.2.0.1.0
    DBCP v.1.2.1
    Spring v1.2.7 (I am using the JDBC template for convenience)
    I have run into serious performance issues reading BLOBs from Oracle using oracle's JDBC thin driver. I am not sure if it a constraint/mis-configuration with oracle or a JDBC problem.
    I am hoping that someone has some experience accessing multi-MB BLOBs under heavy volume.
    We are considering using Oracle 8 or 9 as a document repository. It will end up storing hundreds of thousands of PDFs that can be as large as 30 MBs. We don't have access to Oracle 10.
    TESTS
    I am running tests against Oracle 8 and 9 to simulate single and multi-threaded document access. Out goal is to get a sense of KBps throughput and BLOB data access contention.
    DATA
    There is a single test table with 100 rows. Each row has a PK id and a BLOB field. The blobs range in size from a few dozen KB to 12MB. They represent a valid sample of production data. The total data size is approx. 121 MBs.
    Single Threaded Test
    The test selects a single blob object at a time and then reads the contents of the blob's binary input stream in 2 KB chunks. At the end of the test, it will have accessed all 100 blobs and streamed all 121 MBs. The test harness is JUnit.
    8i Results: On 8i it starts and terminates successfully on a steady and reliable basis. The throughput hovers around 4.8 MBps.
    9i Results: Similar reliability to 8i. The throughput is about 30% better.
    Multi-Threaded Test
    The multi-threaded test uses the same "blob reader" functionality used in the single threaded test. However, it spawns 8 threads each running a separate "blob reader".
    8i Results: The tests successfully complete on a reliable basis. The aggregate throughput of all 8 threads is a bit more than 4.8 MBps.
    9i Results: Erratic. The tests were highly erratic on 9i. Threads would intermittently lock when accessing a BLOB's output stream. Sometimes they lock accessing data from the same row, othertimes it is distinct rows. The number and the timing of the thread "locks" is indeterminate. When the test completed successfully the aggregate throughput of the 8 threads was approx. 5.4 MBps.
    I would be more than happy to post code or the data model if that would help.
    Carlos

    Hi Murphy16,
    Try investigate where are the principal issues in your RAC system.
    Check:
    * Expensive SQL's;
    * Sorts in disks;
    * Wait Events;
    * Interconnect hardware issues;
    * Applications doing unnecessary manual LOCKs (SQL);
    * If SGA is adequatly sized (take care to not use of SWAP space "DISK");
    * Backup's and unnecessary jobs running at business time (Realocate this jobs and backups to night window or a less intensive work hour at database);
    * Rebuild indexes and identify tables that must be reorganized (fragmentation);
    * Verify another software consuming resources on your server;
    Please give us more info about your environment. The steps above are general, but you can use to guide u in basic performance issues.
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • Site previews fine in Firefox locally, but when I published the site all the text is the wrong size

    I am a rookie web designer. I recently created a site using CS6. http://www.joshuahetzler.com When I previewed the site in Dreamweaver it looked good in Firefox and IE. I published the site and now it is messed up in Firefox. All the text is the wrong size. Does anyone know how to fix this? Does it have something to do with my hosting provider? (I deleted a wordpress site from the directory an hourago and put this new site in its place) Why does IE display properly, but not Firefox...

    Caused by a bad link to your site's CSS file.  This is pointing to a file on your local hard drive which nobody but you can see.
    <link href="file:///C|/hetzlerj/jhgc/menu.css" rel="stylesheet" type="text/css" />
    Open your template and reconcile the path to your site folder.  It should probably look like this:
    <link href="../menu.css" rel="stylesheet" type="text/css" />
    Save Template.  Populate changes to Child pages.  Upload Child pages.
    Nancy O.

  • How to store a  blob with toplink

    Hi .. I am using toplink 10g (10.1.3.0) and oracle9 and I am trying to insert a blob with toplink in the database but I dont know how I need to use a resultset and a PreparedStatement if it is the case hor how use toplink???

    You should be able to read the file in and convert its data to a byte-array in your object. TopLink will handle the conversion from byte-array to BLOB in the database.
    If you are using the Oracle thin JDBC drivers, they have a 5k size limit, if your file is larger than this you will need to use the Oracle8/9Platform in your login and a TypeConversionMapping and set the fieldClassification to java.sql.Blob.

  • Trouble with Border Size when Printing

    I am having a great deal of difficulty with border size using PSE 9 and an Epson R800.  I have the latest driver for Windows 7, and still all of my photos come out with a .25" border (or greater if border is checked in the Adobe settings as well) when "borderless" is left unchecked.  I have tried all possible permutations of borderless with an added border, changing print size to trick the program, but cannot get the 3mm (.125") border I am accustomed to. Can anyone figure out what I am doing wrong?  Is a quarter of an inch on a 4x6 print the standard border?
    Thanks in advance
    Gregg

    You must have been using iPhoto 6 the last time as that's not available any more. There are themes now with different border options but no continuously adjustable border width.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

Maybe you are looking for

  • DIV Background image not displaying in FF

    Hi! I'm building a floated 3 column DIV layout with a wrapper to center the DIVs. I put a background image in the wrapper to give the appearance of the columns stretching to the bottom of the layout. It displays in IE, but not in FF. If I give the wr

  • CLI Mode won't work

    I use JBuilder 8 to develop Java projects and everything's fine. however when I try to compile / run a java file in DOS CLI mode, error pop-up: C:\>java Error opening registry key 'Software\JavaSoft\Java Runtime Environment\1.4' Error: could not find

  • JSF and Trinidad

    The code is <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:tr="http://myfaces.apache.org/trinidad" > <jsp:directive.page cont

  • Why is Mountain Lion not for MacBook Pro 15

    I have a MacBook Pro 15" bought 04/2010 running OSX 10.7.5 and fully up to date.  It has all the requisites needed to load Mountain Lion, but cannot because I keep getting: 'Could not complete purchase.  OSX Mountain LIon is not compatible with this

  • Print dialog box wont go away...

    Weird print stuff? Every time I print the print dialog box stays on the screen? It can be moved but none of the buttons do anything. And the print boxes will stack up as many times as you print. Driver issue? since OS X 10.6?