This content has been marked as final. Show 4 replies
whats your error, whats your problem..
please to be very clear to give some ideas or solution ..
pasting program will never get the solution
problem is its not showing any error,the first two values is inserted in database but , the blob field(content) in my code
is not showing any value .
no image is getting insert in blob type.
Well what had happened when you tried with
ps.setBinaryStream(3, fis, (int) file.length());
do you see any byte stream to be inserted in the database ??
Btb,let me clarify something there we are actually inserting image's bytestearm in the blob field in database not really an image.
Also, can please post the defination which you have used to define respective blob database table ??
thnks rahul for ur solution.
i was making mistake there as we cant see image in database its get stored in db in form of bytestream.
so i made another code for image retrieval (retrieving already saved image in db) and its wrking fine.