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,311
  • 3
  • 18
  • 51

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
  • 44,999
  • 57
  • 192
  • 304
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
  • 691
  • 1
  • 6
  • 16