Is it possible to dump images into a database?

2003-07-09 Thread Dan Anderson
Can anyone point me to a reference on how to insert images into a column
in a mySQL database -- or is that not possible?

Thanks in advance,

Dan Anderson


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Is it possible to dump images into a database?

2003-07-09 Thread colbey

take a look at:
http://www.php4.com/forums/viewtopic.php?t=6

or search the mailing list archive.. there are plenty of threads talking
about this:

For list archives: http://lists.mysql.com/mysql




On Wed, 9 Jul 2003, Dan Anderson wrote:

 Can anyone point me to a reference on how to insert images into a column
 in a mySQL database -- or is that not possible?

 Thanks in advance,

 Dan Anderson


 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Is it possible to dump images into a database?

2003-07-09 Thread Mike Hillyer
Yes it is. If you are using VB look at
www.vbmysql.com/articles/blobaccessvb.html

Regards,
Mike Hillyer
www.vbmysql.com


 -Original Message-
 From: Dan Anderson [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 09, 2003 8:49 AM
 To: [EMAIL PROTECTED]
 Subject: Is it possible to dump images into a database?
 
 
 Can anyone point me to a reference on how to insert images 
 into a column
 in a mySQL database -- or is that not possible?
 
 Thanks in advance,
 
 Dan Anderson
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
 http://lists.mysql.com/mysql? [EMAIL PROTECTED]
 
 

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Is it possible to dump images into a database?

2003-07-09 Thread Rudy Metzger
Use LOAD DATA INFILE if you want to import it from the filesystem or use
INSERT/UPDATE if you do it from an application (e.g. perl, php). Make
sure that the column which stores them is defined as BLOB and not as
TEXT. Look up the BLOB definition for size limitation and variations on
BLOBs.

For getting them out of the DB use SELECT .. INTO DUMPFILE to get them
onto the file system or normal SELECT for applications.

HINT: normally it is MUCH better to store the image on the file system
and only store the path to the image in the database. But this again
depends on what you want to achieve.

Cheers
/rudy

-Original Message-
From: Dan Anderson [mailto:[EMAIL PROTECTED] 
Sent: woensdag 9 juli 2003 16:49
To: [EMAIL PROTECTED]
Subject: Is it possible to dump images into a database?

Can anyone point me to a reference on how to insert images into a column
in a mySQL database -- or is that not possible?

Thanks in advance,

Dan Anderson


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]