0

I'm new in MVC I want to know how to upload a file or an image in MVC. Actually I'm using database first approach in which I've database already. I created a Entity Data Model and using auto generated code. Now my field type is Image in database but it's actually does not create Image field in view. Is it not supported in MVC 4?

1

1 Answer 1

2

There is answer:

MSDN:

image data type will be removed in a future version of Microsoft SQL Server. Avoid using these data types in new development work, and plan to modify applications that currently use them. Use varbinary(max) instead

You should use varbinary(max) and it will transfer to model in entity framework.

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.