sql - File upload and display image in angularjs -


how upload image in angularjs , store path sql server , display in asp.net mvc application using angularjs.

i have been in situation , how handled used this directive image in controller , send request action in asp.net mvc. save file on disk , save path in database. below example:

public void uploadimage() {   httppostedfilebase file = request.files["uploadedimage"];    // write code save image   string uploadedpath = server.mappath("~/") + file.filename;   file.saveas(uploadedpath);    //save uploadedpath in database } 

Comments

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -