hi
i want a code with c# Programming language to select some picture and convert thats picture to binary and save them in sql server database.
thanks

Recommended Answers

All 2 Replies

You've pretty much already answered your question. You convert the image to a byte array, and then store it (it's like a varbinary type). Just be aware, this can easily grow the size of your database quickly if the images are large enough.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.