Upload Picture to a SQL Server database using MVC
I was looking to upload an image (jpg) to a SQL Server database using MVC.
Basically - my user would be able to navigate to a page, Browse their computer using a file upload textbox开发者_运维知识库/browse button, and click submit to have the file uploaded to the database.
Fairly new to MVC and not quite sure how to go about this.
There's lots of tutorials on the web however many of them with negative comments.
Does anyone know of any tried and tested tutorials that I could try?
Thanks.
I usually handle uploads with a model binder. I have a blog post here where I describe how I do it.
精彩评论