Topic awaiting preservation: saving .jpg file in database and view them (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 01-11-2005 06:53
Hello, |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
posted 01-11-2005 07:03
Blob is the data type to set for the field to contain your jpegs. My blob upload/download scripts are on my work box and I at home right now, so I suggest that you use google and find a nice tutorial... or check out your php reference books. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 01-11-2005 08:49
actually, you should really think about doing this one, shalvi. |
Paranoid (IV) Inmate From: beyond the gray sky |
posted 01-11-2005 10:22
I was just playing around with the same thing on my website. I did it like TP is saying to code: $data = mysql_db_query("ixifx_net","SELECT * FROM image WHERE userID='$userID'");
|
Maniac (V) Mad Scientist From: :morF |
posted 01-11-2005 10:45
Yes, what TP said. Storing image files in your database is a needless waste of space, frankly. Better to have the files sitting in their own directory on your webserver and to reference their paths through your database. |
Maniac (V) Mad Scientist From: Somewhere over the rainbow |
posted 01-11-2005 10:53
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Inmate From: Sthlm, Sweden |
posted 01-11-2005 21:10
I've also kept to the principle of binary objects in the filesystem, path and meta data in the db. |