mindapolis Posted September 2, 2011 Share Posted September 2, 2011 I'm creating a database table that will have a picture field. What should I set the length be for that field? Quote Link to comment Share on other sites More sharing options...
fenway Posted September 2, 2011 Share Posted September 2, 2011 If you mean storing an image in the DB, I'd recommend against it, unless you have a really good reason. Quote Link to comment Share on other sites More sharing options...
mindapolis Posted September 2, 2011 Author Share Posted September 2, 2011 That really doesn't answer the question Quote Link to comment Share on other sites More sharing options...
sunfighter Posted September 2, 2011 Share Posted September 2, 2011 The answer was DON'T!! put your images in a folder and store the address of the images in your DB. But if your gonna risk losing your images use a blob for the images Quote Link to comment Share on other sites More sharing options...
mindapolis Posted September 2, 2011 Author Share Posted September 2, 2011 With a blob type do you have to worry about the length? Quote Link to comment Share on other sites More sharing options...
joel24 Posted September 3, 2011 Share Posted September 3, 2011 I would also recommend storing them as images and then just pointing to the image location with the database... seems like you've made up your mind, there is a tutorial here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.