![]() Topic awaiting preservation: saving .jpg file in database and view them (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() Hello, |
Paranoid (IV) Inmate From: [s]underwater[/s] under-snow in Juneau |
![]() 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 |
![]() actually, you should really think about doing this one, shalvi. |
Paranoid (IV) Inmate From: beyond the gray sky |
![]() 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 |
![]() 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 |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Inmate From: Sthlm, Sweden |
![]() I've also kept to the principle of binary objects in the filesystem, path and meta data in the db. |