[solved] database row for an image?

  • Nem
  • Guru
  • Guru
  • No Avatar
  • Joined: Feb 13, 2004
  • Posts: 1243
  • Loc: UK
  • Status: Offline

Post June 21st, 2004, 1:11 pm

what would the image part be?

on a row?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 21st, 2004, 1:11 pm

  • panreach
  • Novice
  • Novice
  • User avatar
  • Joined: Jun 17, 2004
  • Posts: 28
  • Status: Offline

Post June 21st, 2004, 8:45 pm

I think you might be asking about populating a database with images???

MySQL uses a blob field. I discourage this. Just store the image "link text" in the field and design your code around the link. It's much quicker!!!
  • Rabid Dog
  • Web Master
  • Web Master
  • User avatar
  • Joined: May 21, 2004
  • Posts: 3229
  • Loc: South Africa
  • Status: Offline

Post June 22nd, 2004, 1:43 am

I prefer to actually store the images in the database, makes everthing easier to manage, special in a CMS environment.

use a field of type Blob to store the file data and one of type varchar to store the MIME type
Watch me grow

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 177 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.