Reputation: 1331
Hi i want to store images into database.I created table with fields like imgID tinyint, image blob. But i have a little bit confusion on it.Can any body tel me how can i do that? Thanks in advance.
Upvotes: 1
Views: 330
Reputation: 721
You should convert Images/Bitmaps into byte array and then add it to the database as blob. Read this post
Upvotes: 0
Reputation: 47290
I've always stored the image file name/location. And just linked to it ... without storing the image as a blob.
Its simpler: database won't get massive and functionally it does almost the same thing.
Upvotes: 1