Date |Mon, 27 Aug 2001 15:31:26 -0700
>From |John Meyer <[EMAIL PROTECTED]>

Hello!

JM> At 09:15 AM 8/28/01 +1200, you wrote:
>>Hi there,
>>
>>I treat image data type as text, does anyone know how to insert an image
>>into the table?
>>

JM> the image data type is actually a BLOB, not text.  Usually, it's more 
JM> efficent to have the field be text, and just store the path to the image 
JM> (C:\my\path\to\image.gif (Win32) or /home/user/path/to/image.gif (Unix)).

It's right. I can add also what may be you want to use
MEDIMUBLOB or LARGEBLOB types. Read more about it here:
http://www.mysql.com/doc/B/L/BLOB.html
and here:
http://www.mysql.com/doc/n/o/node_361.html
___________________________________________________________________
For technical support contracts, visit https://order.mysql.com/
This email is sponsored by SWSoft, http://www.asplinux.ru/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Grigory Bakunov <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB / SWSoft
/_/  /_/\_, /___/\___\_\___/
       <___/   www.mysql.com


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to