×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

can i store pictures in a MySql Database ?

can i store pictures in a MySql Database ?

can i store pictures in a MySql Database ?

(OP)
Is it possible to store Pictures (jpg,gif) in a MySql Database ? And if the answer is yes, how can i do it ?  

Thanks for any help  

RE: can i store pictures in a MySql Database ?

I am not 100% sure if you can store an image in a mysql database. What I do know is that you can store the location to the image in the database, have the image uploaded to the server, and have, say, a PHP script, call the database.

If you are wondering how to do PHP interaction with a mySQL database, I would be willing to help.

Hope this helps,

-Vic


vic cherubini
malice365@hotmail.com
www.epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====

RE: can i store pictures in a MySql Database ?

I still haven't tried it out - but i suppose it's possible to put  pictures into a BLOB-Type field.
(They must be useful for something).

Roland.


 
 
 

RE: can i store pictures in a MySql Database ?

Heheh.

I know what you mean, I have never used one at all. I have no clue what they are for.


-Vic


vic cherubini
malice365@hotmail.com
www.epicsoftware.com
====
Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director
====

RE: can i store pictures in a MySql Database ?

I have a publication "MySQL" written by Paul DuBois that has the answer for your question, yes you can do it and it is by using blob fields, the code is found on page 269 - Working With Image Data.  I haven't got it to work yet because I am fairly new to C++, but I think I am close, if you look at this publication with the code in it and you get it to work, let me know how.
thanx
bill
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close