1

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.

malavika
  • 1,331
  • 4
  • 21
  • 54

2 Answers2

1

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.

NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
0

You should convert Images/Bitmaps into byte array and then add it to the database as blob. Read this post

Community
  • 1
  • 1
Pavan
  • 711
  • 2
  • 6
  • 17