upload image in afolder and name into database

Posted by Bhuwan87rawat under ASP.NET on 8/21/2012 | Points: 10 | Views : 1622 | Status : [Member] | Replies : 2
Hi,
in my application, i want to upload an image .i want to save image into a folder and save name in to database.
how it is possible

Regards

Bhuwan




Responses

Posted by: Johnbhatt on: 8/21/2012 [Member] Starter | Points: 25

Up
0
Down
Simply upload File in Folder and then Write Path in database.

string myFilePath =Server.MapPath("~/Uploaded/")+fileupload1.FileName;


Code may not correct, I will reply with Example in Evening.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: prashant12-7256 on: 8/21/2012 [Member] Starter | Points: 25

Up
0
Down
Here is an example (tutorial) :

upload files in folder

http://www.aspdotnet-suresh.com/2012/02/saveupload-files-in-folder-and-download.html

Bhuwan87rawat, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response