I wrote a servlet program to upload an image to Oracle table. I am using Oracle 10g version.
I created the table using
create table insertimage( image BLOB);
The table was created successfully. My servlet shows image uploaded successfully. Even when I delete using
delete from insertimage;
it shows successful row deletion.
But when I try to see the table content using
select * from insertimage;
it gives me
ORA-00932: inconsistent datatypes: expected NUMBER got BLOB error.
So how can I check if the image has been successfully uploaded or not directly in the Oracle table?