I have an asp page. In asp page I have an image control. There is an image within the image control. I want to save this image in database. In the database the particular field data type is image. How is it possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check this article out:
Save and Retrieve Images from the Database using ASP.NET 2.0 and ASP.NET 3.5
Example from the above article
First of all you need to convert your image into bytes like this:
Then you use
imgByteas value when you add to your database.