Why can't I loadDataFromByteArray()??

hi !
I want to use the mathod "loadDataFromByteArray()" to
a new OrdImage ,but failed. Why?
The code is as fellows:
OrdImage image, imgTmp;
note: object image have already gotten data from a bmp file sucessfully;
(1) byte[] data = image.getDataInByteArray();
this step is ok;
(2) boolean success = imgTmp.loadDataFromByteArray(data);
this step failed.
Please help me!
Thank in advance.
Bill

before running imgTmp.loadDataFromByteArray(data),run imgTmp.deleteContent().
have errors :
ORA-22920: unlock the value including LOB
ORA-06512: at"SYS.DBMS_LOB", line 686
ORA-06512: at"ORDSYS.ORDSOURCE", line 714
ORA-06512: at"ORDSYS.ORDIMAGE", line 173
ORA-06512: at line 2
What can I do?
By the way ,explain as fellows:
1)Ordimage 'image' is a variable of JavaBean with orace database connection and sql satemates;
so the 'image' object is a LOB in db;
2)My true purpose is that :
firstly ,get OrdImage data form database by the javabean with connection and sql statemate,and put it OrdImage 'image' of the javabean.
secondly,use OrdImage.getDataInByteArray() to a variable 'byteArr'.then process the image data and save in 'byteArr'.
thirdly, use the loadDataFromByteArray(byteArr) to OrdImage variable 'ImgTmp',but failed;I think one reason is in ImgTmp's initial(I don't know how to initiate 'ImgTmp') ,and the other reason is the unlock the row including LOB correlate the Javabean above(I don't know how to lock the row);
finnally ,I want not to change the LOB in database .
What should I do??
I welcome anyone's andvice!
Thanks !
bill

Similar Messages

  • If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    If you registrate one Apple ID for each iPhone/iPad, you'll get 5GB on iCloud for each Apple ID, right? I have two iPhones and one iPad  with the same Apple ID, why can't I get 5 GB fo each of them?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • Why can't I just use my debit card for adding my child to family share?!

    I want to use my child on family share but can't because I don't need or want a credit card, my bank has fraud protection, who actually just called me about fraud because I purchased the newest iPhone! I don't like credit cards. Why can't I just use my debit card as usual? Kids can get credit cards just as easily as they can debit cards! This is ridiculous. Why isn't there another option to verify I am the parent?! I am so beyond angry right now. Like I am being punished for not owning a credit card!! Otherwise there will be another way to do this. A person should have the freedom to use their chosen form of payment without missing out on all the options available. Honestly even if I wanted a credit card I haven't enough credit because of past mistakes. So this is not making me happy at all.

    Mad Parent,
    I feel your pain. We refuse to have credit cards, too; yet it's required in order to create a child's apple id. I will most definitely be leaving feedback with Apple. This is absolutely ridiculous that we can't just use our debit cards! Mine is a VISA. I use it to make CREDIT CARD transactions everywhere else, why not be able to use it the same way here!?
    I just had to restore my sons phone because he forgot his 4-digit password and got it disabled. I didn't have it already on my itunes so my only option was to restore it. I wanted to create his own apple id so he didn't have to keep using mine. Because every time he downloads a new game it automatically ends up on MY device as well, not just his. Anyway, he needs his own apple id. But, apparently, that won't be happening until Apple gets their heads out of their butts and figures out how to serve ALL of their customers!
    Signed,
    Equally Mad Parent

  • Why can you NOT get a straight forward answer on upgrading to Edge?

    On Saturday morning I called customer care with a SIMPLE question about how the Edge Program works. The lady I spoke with gave me information that didn't make sense and told me one of my lines could move to edge and the other could only after 6 months of on-time payments. That didn't make sense to me, how could one be eligible and not the other when the explanation of WHEN would be eligible is contingent upon 6 months payments. I was so irritated I started shopping at other carriers to see what their "Edge" like programs work like and was considering switching carriers. So, I called back and spoke with another guy to find out what my ETF's were and he informed me that I COULD upgrade both lines to a Note 4 for about $5 above what my bill is a mo. each with all of the discounts applied. I told him that I would go to a Verizon store and probably upgrade instead of cancelling. So, I went to the store and was treated TERRIBLY!! I was told that I could not move both of my lines to the edge program with the Note 4. I was told I could move to Edge with both lines but one would have to be a Droid and the other could be whatever phone I wanted. I was blown away with yet another piece of information that was not matching up with what I was told. He said I could call customer care and see if they could do anything. I was BLOWN away that a corporate Verizon store would just turn me away (which was extremely demeaning and embarrassing in front of their other customers) to call customer care again and tell me my best option would be to cancel if I wanted a new phone for the line I wanted to upgrade. So, I called customer care again and spoke with another lady who correctly informed me (I think) of how it works and stated there was nothing she could do on the line that was not eligible which should have been told in the previous conversation with the guy I spoke with. One thing struck me as odd, she said the phone is on a lease with Edge so the phone is never yours, which is something NO ONE mentioned at any point in any prior conversation. So, is that true? I now know where I stand with upgrading but my original questions about how Edge works are still not fully answered and what the last rep stated brings up other questions. If it's "leased" what happens if it's broken or lost? Anyway, I was looking for what I thought was a straight forward answer to a question about how Edge works, how much it costs, and are my lines eligible, etc. and wasted a good hour on the phone and another two driving to a store just to get turned away like as though no one even cared! The last lady I spoke with seemed to care but I'm blown away with the TERRIBLE customer service and COMPLETE lack of ownership. Why can no one take the feedback and DO SOMETHING ABOUT IT and then answer my questions about the Edge program. Bottom line, I'm not looking for a freebie upgrade (though maybe I should for all of the time wasted due to incorrect/inaccurate information). but I'm blown away that no one wants to do anything.
    That all being said, can someone on here explain how Edge works with the discounts and is the phone really a "leased" phone? Pretty sad that I'm resorting to forums to ask other customers how it works but would appreciate any info anyone can share. I'm probably going to port both of my numbers to AT&T if it is true they are a lease and due to all of the terrible customer service.

    I just saw in another post that if it's an "early" edge I would have to turn in the phones. No one told me that either and now I wonder if just forget Edge and port out. What's the advantage of doing Edge with all this confusion and red tape? Is an early edge considered early if you're upgrading with Edge prior to the contract end on the current phone? Verizon Customer Care and Stores REALLY NEED to be up front about this stuff! From what I see here and what others are going through Edge is a TERRIBLE TERRIBLE program.

  • Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?

    Please take the Mac to  Apple store to have it checked out.
    Genius Bar reservation
    http://www.apple.com/retail/geniusbar/
    Best.

  • Complaint: Why can I not download a Windows 8.1 ISO on Mac?

    Hello,
    I have been sent here by you customer service team to make a complaint.
    I have recently purchased Windows 8.1 pro student as a download. I need this for university and was planning on boot camping my mac to do this. I am told the only way to download this product is with a windows machine. I have tried at work but need administrator
    privileges also.  
    This is simply a ridiculous system that you need the operating system that you are downloading to make the download occur. You should be able to download an iso file or the like. I have ordered a backup media (obviously at my expense).
    The customer service people I spoke to were very unhelpful. Also this process of complaints is poor. Why can i not talk to someone re a complaint? 
    Regards
    James

    Hello James,
    Please take a look at the following thread similar to this issue.
    Where can I download a Windows 8.1 iso for Bootcamp?
    https://discussions.apple.com/thread/6133650
    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why can't I install Itunes on windows vista 64 bit?

    Why can't I install Itunes on windows vista 64 bit? I have removed all apple software and repeated the reinstall many times but it fails.  I get this complicated error mesage and then the installer rolls back and fails.

    I get this complicated error mesage and then the installer rolls back and fails.
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • In PDF file click on Tools, try to click on Sign In option nothing happens. why can't I sign in to convert my file.

    In PDF file click on Tools, try to click on Sign In option nothing happens. why can't I sign in to convert my file.

    This is what I receive when I select update.

  • Why can't I send email from my iPad Air

    Why can't I send email from my iPad Air? I can receive them but not send.
    Thanks

    Hi..
    Try the troubleshooting steps here >  iOS: Troubleshooting Mail

  • Why can I not sign in and download my new copy of photoshop elements 12

    Why can't I download my new program---first it asks for my adobe ID--which I give it and then it says not recognized--so I try and try and try again--changing the password--then it asks for a serial number and gives me 24 spaces--but the serial number has 30 spaces--why haven't adobe--as big as they are not got decent help.

    Version 13 is the current version.  Did you purchase version 12, and from where?

  • Why can I not sign in? You already charged my card!

    Why can I not sign in? You already charged my card!

    Imessage and Facebook is down - Apple servers went down,  Wait a bit they are coming back on line....

  • Why can't I download or open tif attachments on my iPad Air and IPhone 5s in mail running 7.1.2?

    Why can't I open tif attachments on my iPad Air and IPhone 5s in mail running 7.1.2?
    Tap to Download icon flashes but does nothing.

    I just hooked this thing up to my computer and was able to load new apps and update via the app store that way, installing them onto the iPad via sync. Very annoying though as I cannot make in app purchases etc still.
    Wish apple wouldn't pull this kind of junk.

  • Why can't i view on iCloud what is on my lost iPhones? i can see how much GB's they are taking up but can't click on the data to see what it is..

         Why can't I view my icloud backups on a new apple device using the same icloud id? Unluckily I lost 4 iphones in 2 yrs. all had same icloud acct on them, so when i log on to locate my current iphone on my macbook or on new iphone, it shows a list of all the lost iphones and their data take up.
    When i click on settings on my ios> go to icloud > storage & backup> manage storage:
    LOST IPHONE 1- 4.5 GB  DOCUMENTS & DATA : it shows PREVIEW 1.2 MB PAGES1.6 MB TEXT EDIT91.6 KB PHOTOS 3.2 GB
    LOST IPHONE 2- 3.2 GB  DOCUMENTS & DATA: it shows same thing just different gb's mb's kb's 
    LOST IPHONE 3- etc.......
    but you can't click on those documents & data to show what exactly they are so you can move them or save and delete. If I go into icloud there's nothing there from that long ago. is that data deleted? if i were to get that certain iphone back and turn it on would the pics, docs still be in icloud? it says all that room in my icloud is still taken up so where can i view it?? anyone know??
                            THANK YOU!

    If you haven't already, you could force-quit Quicktime by using the menu option from the desktop (finder) and choose Quicktime.
    Not sure what you have frozen on the screen, be it a failed movie, or some unusual screen shot. If you can find by date (created) you may be able to look for .mov or quicktime suffix name or other video file content to delete it.
    And you may have to restart your computer and perhaps run repair disk permissions from Disk Utility's first aid on the hard disk drive in your computer.
    Not sure if all that would help now, but it is something a few days late...!
    Good luck & happy computing!

  • Why can not waych direct tv on my surface tablet?

    Why can i not watch direct tv on my surface?

    Don't know, but Adobe Reader isn't anything to do with watching TV.

  • Why can't I delete pictures off of camera roll. I also can't send a picture to a friends phone. One last question.......why do pictures freeze up on the screen and I have to hit the power button to go back to home screen. Thanks for any help.

    Why can't I delete pictures off of camera roll?  I also can't send Pictures to someone else's phone. My picture seems to freeze up and I can't do anything, particularly delete the picture. I'm new to iPhone so I'm really just learning how this iphone thing works :)

    Did you recently start using iCloud to backup your photos?
    Wife had the same problem today.  Remembering that I had recently signed her up for more space on iCloud and started backing up her photos, I decided to roll the dice and turn that off.  Plug phone back into computer and *boom* I now have the option to delete.  Now I just have to figure out how I can do both = \

Maybe you are looking for

  • XML Validation

    Since there is no XML validation currently in the Flex/Flash framework, I've decided to start a class that parses a string in an effort to validate the markup, returning whether the XML is valid. I have a need for it in my non-server based applicatio

  • Subnets and DHCP Scopes One More Time

    If my subnets are all subnets off of the same network such as 192.168.43.0/19 and the subnets are 192.168.43.0 192.168.43.32 and so on can a single router handle all the subnets as relay agents?  I'm assuming I don't need separate routers for each su

  • Upgrading from option 2 to unlimited

    i received an email from bt about a week ago offering new black home hub and unlimited broadband for an extra £3 or so pounds a month.  Unfortunately i deleted it by mistake.  how can i get them to resend it

  • OVM 3.1.1 - Live migration not completed

    Hi, I'm facing an interesting case with the VM live migration. If I issue a migration from the manager, the VM is effectively moved to the new server but the job still in a "in progress" mode (0% completed) and the OVM servers still locked until I ab

  • Webstart proxy handling

    Hi, we took webstart one step further by implementing a webstart cache server. To understand this, one has to know that we plan to distribute java programs to about 36000 clients. To avoid that 36000 downloads hit the server we will install a special