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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -