Re: Store a File (any type) in MySQL
| From: | Daniel Crespo | Date: | Tue, 23 Mar 2004 04:24:02 +0000 |
| Subject: | Re: Store a File (any type) in MySQL | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33616@lists.php.net to get a copy of this message | ||
Ok, I'll consider it... But just, please, could you give me an example code
of what I want to do?
Thanks a lot.
"Bruno Santos" <brvds@netvisao.pt> escribió en el mensaje
news:405E4FD9.4000806@netvisao.pt...
> Daniel Crespo wrote:
>
> >Hi everybody...
> >
> >Anyone knows how to store a file (any type) in MySQL?
> >
> >Thanks
> >
> >
> >
> hello
>
> MySql has binary field types, but, are they long (in size) enough for
> your file ?
> if the file is small, i guess you could store the data in the mysql
> field, but, and if files are user choosen ???
>
> why dont u consider storing the data, or the file, in some directory and
> just put the location (file name) in some field in the database ?? is
> more safe and overflow free
>
> cheers
>
> --
> -----------------------------------------------------
> .-'''''-.
> .' `.
> : :
> : :
> : _/| : Bruno Santos
> : =/_/ : brvds@netvisao.pt
> `._/ | .'
> ( / ,|...-' Pagina Pessoal
> \_/^\/||__ http://feiticeir0.no-ip.org
> _/~
""~"` \_
> __/ -'/ -._ \_\__
> /jgs /-' \ \ \-.\
>
>
> "Written very small on the back poket of a girl's jeans
> - 'If you can read this, you're WAY too close.'"