If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Attaching an image file to the database..?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-02-04, 13:12
cnl83 cnl83 is offline
Registered User
 
Join Date: Aug 2004
Posts: 3
Attaching an image file to the database..?

Ok, im an ACCESS user, I used MYSQL quite a bit, but never added an image to the database. Ive never even done it in ACCESS.

Can someone tell me how do they link an image in a database? Here is what I want to accompolish.

I want to upload subject, description, and image.
I want to view the subject, description, and image.

Attaching an image to MYSQL...
Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 08-03-04, 11:52
yellowmarker yellowmarker is offline
Registered User
 
Join Date: Jul 2004
Location: Dundee, Scotland
Posts: 107
In MS Access you'd use the "OLE Object" field type to store an image.

In MySQL you'd use the "BLOB" field type to store an image.

An easier approach is to store the image in a directory on the server and just store the filename in the database table.

Hope that helps you progress,
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On