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

Omimo, I see it's your first post so welcome. But if I do a little search like https://www.google.com/#q=mysql+save+picture+in+database+c%23 it appears there are priors.

Care to share a bit more what's up?

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.