Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to insert a picture into database?

Status
Not open for further replies.

lgreyes

Technical User
May 1, 2004
13
0
0
MX
Hi everybody,

Could somebody tell me how can I insert a picture into a database or maibe where can I get information about this.

Tanks.
 
Hi,

You will have to store them in blob datatype. Here's an eg.

create table myblob
(
no smallint,
blob_data blob
)

insert into myblob(no, blob_data) values
(1, filetoblob('c:\abc.jpg','client')) ;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top