File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 2839
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!