How can I display the image data type (from SQL Server) in ASP.NET?
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.
I know this doesn’t directly answer your question, but I have always found it best to place the location (path) of the file on your server in a database field (a string data type i.e. “varchar”, “text”, etc…), and use that to display the image on the web page via an element.
Storing images in a database can be very cumbersome which is why I don’t do it.
Hope this helps.