Now, i can put blob into file, but ...............

Hi
At first, Thanks Lawrence Guros , from his hint, i did it(put blob into file) using JDBC.
In addition i find that, using sql*loader "load" a file(150Mb) into database ,need 3 minutes . Using jdbc "take out" the same file ,need 1.5 minutes. Does jdbc is better than sql*loader ?
So that i tried to load a file using jdbc, i got a problem.......
My environment:windows 2000pro,JBuilder 5.0 enterprise,oracle 8.1.6,(not install oracle jdbc driver )
a part of program(my program is very uglily,if anyone want,later i paste it ba....~_~)
// Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
// Statement stmt2=null;
// Resultset rs2;
//opa1 is the blob data
void saveBlobTableToDisk(Connection con) {
try {
stmt2=con.createStatement();
sqlStr2="SELECT * FROM emp3 where id=1004";
rs2=stmt2.executeQuery(sqlStr2);
while (rs2.next()) {
Blob aBlob=rs2.getBlob("opa1");
i got the exception :
" null
java.lang.UnsupportedOperationException
     at sun.jdbc.odbc.JdbcOdbcResultSet.getBlob(JdbcOdbcResultSet.java:4174)
     at test3.Frame1.saveBlobTableToDisk(Frame1.java:48)
     at test3.Frame1.<init>(Frame1.java:26)
     at test3.Application1.<init>(Application1.java:5)
     at test3.Application1.main(Application1.java:8) "
and the windows pop up a messagebox said that(about) my memory "0x09af007f" could not read, error in javaw.exe .
Later i used (ResultSet)getBinaryStream() to solve it. but getBinaryStream() only return a InputStream,so that i can make blob to a file,but i can't make a file to blob using jdbc.....
I am very stupid that installing sun java, oracle jdbc driver etc....(because i must set a lot of thing such as classpath,java_home etc), Can i only use JBuilder to do that ?
Or i must install oracle jdbc driver ?
Thanks.
D.T.

I would think that SQl*Loader would be faster, but you may want to ask in the SQL*Loader forum for more expert advice.
I can't tell from your code what you are doing. Is the "opa1" column a image folumn or a straight blob? Which line is 48?
I only have experience with the oracle JDBC driver. You should be able to use it with jBuilder.
there is an example of loading an image into an ordimage type at:
http://otn.oracle.com/training/products/intermedia/media_dev_kit/java_samples_readme.html
and a more extensive web based photo album:
http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
And for bulk loading:
http://otn.oracle.com/sample_code/products/intermedia/htdocs/avi_bulk_loading.html

Similar Messages

  • What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    What do I need to do to be able to read and write files to a Seagate Backup Plus Slim Portable Drive on BOTH a Mac and a PC? I downloaded "Paragon NTFS for Mac" onto my Mac, so now I can write to the drive, but when I plug it into a PC it won't work.

    If the HDD is formatted NTFS, then it suggests that there is a problem with the PC.  Check with the manufacturer.
    Ciao.

  • I tried to update my ipod and had to back up on computer. I never created a password for the back up but now I can't get into my ipod

    I am locked out of my iPod. I tried to update the iPod so I could download a song I just bought. Had to back up the library on my computer. After I installed the software and updated the iPod, iTunes is asking for the password for the backup, but I never typed a password. Now I can't get into my iPod at all.

    That happens some times.
    - You can restore to factorys settings/new iPod or
    - Try to recovery the backup password by:
    How to Recover iPod Backup Password to Restore iPod from Bakcups

  • I plugged my flash drive into windows and now I can't open the files on my mac. Help??

    I plugged my flash drive into windows and now I can't open the files on my mac. Help??

    What version of iPhoto?
    What format is the disk?

  • I just converted wav to mp3, but now I can't locate the files.

    I just converted wav to mp3, but now I can't locate the files.

    make sure you have the exact path written correctly. If you can, show what the filename is in itunes, and the filename when you are looking at the song files (i.e. through my comuter). Make sure these are the same, and that they are all usable itunes formats.

  • Hi there not sure what I did wrong but got a message asking if I would allow the application config but was warned by commputer not to now I can't log into some sites and others won't load properly, anyone had this problem and has advice?

    Hi there not sure what I did wrong but got a message asking if I would allow the application config but was warned by commputer not to now I can't log into some sites and others won't load properly, some sites will log in but only if the stay logged in box is not checked,I'v have cleared my cashe and internet history looked through securtity setting but nothing, anyone had this problem and has any advice?

    See KB Article:  http://support.apple.com/kb/HT1274 Changing or resetting an account password
    my current country does not have a apple store....
    AS are not the only places that repair Macs.  Check out the following:
    International AASP’s & Other Services
    AASP's Outside of the USA
    How to find your nearest Apple Authorized Service Provider (AASP)
    Also, there are User Groups that can possible help.

  • Help? Adobe Acrobat 11 Standard - just purchased for windows 7 now I can't open pdf files or attach?

    Help!!!
    I just puchased the latest Adobe Acrobat XI Standard.
    I put in the Serial Key number but my computer tells me that a qualifying product could not be found on my computer so I can't use the adobe product. So now I can't open any files or attach pdf files onto emails without this message coming up. I've un-installed the "Adobe Acrobat XI Standard twice! with no luck.
    I need it sorted ASAP as I'm trying to work! Any suggestions?

    DotBellaParis if you are being asked for a qualifying product then it would appear you purchased an upgrade to Acrobat XI Standard.  You should have the opportunity to enter the serial number for your previous purchase of Acrobat.  You can find information on how to locate your previous serial numbers at http://forums.adobe.com/message/3987968#3987968?promoid=KBHJW.
    If you did not intend to purchase an upgrade then I would recommend submitting a return request.  You can find more details on submitting a return at Return, cancel, or exchange an Adobe order - http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html.  Once you have returned the upgrade you can then purchase the full version which will not ask you for a qualifying product or serial number.

  • How do you put doc into files?

    I am new to Abode Reader and I can not organize my doc. W/o putting them into files.  Can anyone help me?

    You may find this tutorial helpful:
    http://forums.adobe.com/docs/DOC-2532
    It is slightly out of date, but most of the concepts still apply. Additionally, there is some information in the Getting Started document that comes with Adobe Reader.

  • Ok now I can open the motion projects but I can't save them

    Hi
    I followed the steps specified at the "famous" trick http://support.apple.com/kb/TS3061 and now I can open the motion files. The bad news are that now I can't save them wich means that I find myself at almost the same point that at the beginning of the issue. I tried too installing the QuickTime 7 but nothing...
    Did any one solve the problem completily using that trick? Am I doing anything wrong with the steps maybe?
    Thank you

    Hi again!
    I found the solution! Yes. I have to admit that the trick was ok!!! But I thought it wasn´t because I opened files from a folder that I had been administrating with the user account before and then for any reason when I changed to the Administrator account Motion didn't allow me to save any files into this folder.
    ¿Does it make sense at all?
    Thank you any way Patrick

  • The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message

    Hello,
    Please help me figure this out. I'm very unhappy at the moment. I'm fustrated and don't have any idea how to revert to the original version before the update was done on iMovie 10. I NEVER hated APPLE until NOW!! I love APPLE products and apps so please help me stay in that mindset. So I worked on some movie projects when I got my macbook pro 6 months ago. I update reguarly. I saw the update prompt and honestly, I did not think I would have ANY issuess with opening my previous files that I created only a few months ago with this updated version.The new updated version of iMovie 10 won't let me open my previous files I created before the update today. I have a wedding that I'm trying to finish and deliver and now I can't because that file version won't open. I keep getting an error message and the iMovie app closes. Last night I saw the file and tried to open it but no luck. Error message came up again. I reboot and turned off my laptop for the evening and tried again just now but nothing!! I need that video. My job depends on it! I worked so hard on this wedding video and now it's lost and won't open. I work another job and don't have much time. I really don't want to start all over again. Please help me. Thanks so much for your assistance.
    Fustrated APPLE customer
    Jolly A. Rupp

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • HT4623 i updated my 5 and after i updated it asked me for a password i never had a password now i can't get into my  phone what's up with that

    I updated my 5 to ios7 after the install it asked me for a password i never had a password now i can't get into my phone

    Hi,
    Instead of using Adobe Reader try to convert your files through Export PDF.
    Kindly refer to this link :https://cloud.acrobat.com/exportpdf
    Please let us know if you require further assistance.
    Regards,
    Florence

  • I updated my computer and now I can't play mov files from anywhere

    I updated my computer and now I can't play mov files from anywhere - won't play in FCP 7, Quicktime. Not sure what updates they were specifically since i hit the "update All" button without going over each one. Please help!! operating on 10.6.8 with FCP7

    Just take a look at the last few days posts here and you'll see many people with the same problem and some possible solutions.
    But you should never do any software updates unless you have a bootable backup of your startup drive.  FCP7 is no longer being supported by apple and updating anything is fraught with dangers. 

  • I've up graded my Canon 5D Mk1 to a Mk3.  now I can't download RAW files as veiwable thumbnails

    I've up graded my Canon 5D Mk1 to a Mk3.  now I can't download RAW files as veiwable thumbnails via CS4 Photodownloader only as 'tiles'.  I can still double click these tiles and open in PS elements and edit OK.  But they remain as tiles after editing although the resulting Jpeg can be seen as thumbnail in folder although needs purging first.  Please help.

    Run Help> Updates to get v8.3 of the Camera RAW Plug-In.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • HELP! I attempted to erase free space and now I can't open any files!

    Hi everyone! I hope you can help me with my problem.
    Last night, I attempted to erase free space from my HD using disk utility. During the operation, the computer hung, so it wasn't able to complete 'creating temporary file' operation. So i had to stop the operation. And now, I can't open any files! Turns out my HD was full. But prior to my attempt to erase free space, I still had 25GB out of 55GB of free space. What happened? And how do I fix it? A lot of important files are in my HD and I don't want to lose any of it.
    Hope somebody could help me. Thanks a lot!
    allworkedup
    iBook G4 14"   Mac OS X (10.4.6)  

    Hi, Scary isn't it? I did the self same thing. Check your trash, you should see one or more disk images there. Empty the trash. All will be OK thereafter.
    If they're not there, restart and either the system will sort itself out or they will appear in the trash, so empty it.
    See here for my thread on the same subject.
    Good luck,
    Adrian
    Message was edited by Adrian: Oh, and Welcome to Discussions !!

  • I changed my Apple ID and password.  Now I can't sign into icloud on my mobile devices.  They have my old id and I can re her the old password for icloud.

    I changed my Apple ID and password.  Now I can't sign into icloud on my mobile devices.  They have my old id and I can re her the old password for icloud.

    Hello Martin,
    Thank you for the details of the issue you are experiencing with your iCloud account on your Mac.  I recommend signing out of iCloud first:
    On your Mac, open iCloud preferences, then click Sign Out.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    If you are still being prompted for your password, I recommend the steps in the following article (this article refers to an iOS device, but the steps are still relevant for your Mac as well):
    iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
    http://support.apple.com/kb/TS5223
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • Getting *Not all values are bound* error while creating the VO

    Hi When i create a VO with the following query i am getting ORA-01008: not all variables bound error after giving apply. The Query is: SELECT emp.full_name CSA, COUNT(*) "Total # disputes", SUM(rac.total_amount) "Total Dispute Amt", (SELECT COUNT(jtb

  • Site Design Question(s)

    Purely hypothetical questions here. 1 AD Site. 4700 workstations (4200 windows the rest mac/linux) Site mostly within a 2 mile radius all on 100Mbps with major buildings/network via fibre. 1 remote site 15 miles away with 100 clients connected back t

  • How to subtract in pages chart

    In the program "PAGES" I constructed a chart that requires adding two values (WHICH I CAN DO) and then subtracting another value from that product. I CAN FIND SUM but how the heck do you subtract?????? I am frustrated.

  • Thtmlb:cellerator Cell Click Event

    Hi All I have created a Dynamic Table view and the columns are determined at run time based on few conditions and used Iterator class. I have a column where I want the cells to trigger an event when clicked on. For example if i click on value 2 under

  • Automater/iphoto/spinning wheel

    Hi, I decided to be clever and give all my photos names (as pet the automator demo) and now when I use iphoto, any photo that has been renamed will not open - I just get the spinning disk! I notice that in Iphoto the details for the photos have not c