0

How can I display the image data type (from SQL Server) in ASP.NET?

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.