It depends on what kind of comparing you will be doing. Text is case-Insensitive for comparisons, blob is case-Sensitive.
Generally I find that for pure text, TEXT type is better. For files and texts that need to be compared case-sensitively, use BLOB.

Either way, for images, and any other binary content, you HAVE to store as a blob. I wouldn't do it though. I would have a varchar field that stores the location and name of the file, and have the file be stored in the filesystem.

Maximo.

At 12:17 15/1/2003 -0500, you wrote:
Is it wise to always assume that a file content is always binary and hence store it
in a MySQL BLOB type, even if the file may be only a text file? Your thoughts on this would be appreciated.

sql


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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