What is the easiest way to upload images t开发者_JAVA百科o database using C#?
Please see: Best way to save/load pictures with .Net & SQL Server 2005?
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.
精彩评论