This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Java in General and the fly likes Blob data insertion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Blob data insertion" Watch "Blob data insertion" New topic

Blob data insertion

Sathya Bala

Joined: Oct 11, 2012
Posts: 2
Hi........ In my apllication Iam uploading jpg/gif image and writting it in a location and then reading the file and inserting the blob data into database using Java. It was working fine. But in some cases, the image is partially written in the location ie.most part of the image is grey. Some other cases, it is properly written in the location but partially inserting in db. What may the reason for this? Please help me.... Thanks in advance.......

Iam using Oracle db.
Tony Docherty

Joined: Aug 07, 2007
Posts: 2737
Welcome to the ranch

What may the reason for this?

My guess is there's probably a bug in your code but without more information and some code to look at it's impossible to say.

If you show the code (remember to use code tags) then we may be able to be more specific.
I agree. Here's the link:
subject: Blob data insertion
It's not a secret anymore!