Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to upload an image on picture box using c#?
and then how to store it in MS Access.
Posted
Updated 18-Jun-13 0:30am
v2
Comments
Shahin Khorshidnia 18-Jun-13 6:31am    
Why don't you google your question first?

C#
if(FileUpload1.HasFile)
       {
           string filename = FileUpload1.FileName;
           string path = "~//Images//" + filename.ToString();
           FileUpload1.SaveAs(Server.MapPath(path));
}
 
Share this answer
 
v3
YOu can use the FileUpload Control of asp.net or you can use AJAX FIle upload control as described below.


http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AjaxFileUpload/AjaxFileUpload.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900