0

What is the easiest way to upload images to database using C#?

monksy
  • 14,156
  • 17
  • 75
  • 124
AlexC
  • 9,657
  • 17
  • 64
  • 98

2 Answers2

1

Please see: Best way to save/load pictures with .Net & SQL Server 2005?

Community
  • 1
  • 1
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541
0

There is only one way to upload them to database. Just write a query with sqlparamerters and set a parameter value to Byte[] of image.

If you ask me, Whats the easiest way of storing them in database. Then I would say BLOB streaming engine. Its the best solution, but its available only for MYSQL. It has a tiny webserver embedded in it. Which allows to stream upload images to database using HTTP PUT.

claws
  • 52,236
  • 58
  • 146
  • 195