Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL> desc student_record_database
Name Null? Type
----------------------------------------- -------- -------------
ROLLNO NOT NULL NUMBER(5)
FIRST_NAME CHAR(10)
MIDDLE_NAME CHAR(10)
LAST_NAME CHAR(10)
ADDRESS VARCHAR2(25)
CONTACT NUMBER
DATE_OF_BIRTH DATE
MEAL CHAR(4)
GRADE VARCHAR2(5)
BLOOD_GROUP VARCHAR2(11)
TRANSPORT CHAR(10)
CARD_TYPE CHAR(10)
CARD_NO NUMBER
DID NUMBER(3)
AID NUMBER(3)
HID NUMBER(2)
RUTNO NUMBER
BUSNO VARCHAR2(10)
SNAME CHAR(10)
CONTACT1 NUMBER
CONTACT2 NUMBER
DIVID VARCHAR2(10)

This is the structure of table student_record_database

Now I want to add picture of each student in this database....

So how to add picture field and how to insert picture into database table.........

Please help
Thank you
Posted

1 solution

The picture field would be of type blob or image. You'd pass in the bytes of the image as a parameter to a stored proc or paramaterised query. You'd try to avoid doing it in VB6, a language that always sucked and has been obsolete for a decade or more.
 
Share this answer
 
Comments
surkhi 21-Jan-13 0:16am    
You are right sir,but unfortunately My front-end is VB6.....
So isn't it possible to retrieve pictures in vb6???
Please specify how to insert image syntactically because I don't understand what you are trying to say.....
Thanx.....
Christian Graus 21-Jan-13 0:44am    
Honestly, VB6 is crap and no sane person should be learning it. I have no clue how easy this is to do in VB6, I would be inclined to write a business layer in C# and expose it through COM. Then there's tons of examples on the web of what you want
surkhi 21-Jan-13 0:51am    
kthanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900