Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi ,
I want to save an image into a folder;And image is in an asp:Image control
Any idea plzzzz
Posted
Updated 9-Aug-12 23:06pm
v3

 
Share this answer
 
Comments
Nimisha Mary John 10-Aug-12 5:00am    
I want the code with imagecontrol ,not with fileupload,;Thats the actual problem,
Manas Bhardwaj 15-Aug-12 3:07am    
Correct +5
Prasad_Kulkarni 16-Aug-12 0:09am    
Thank you Manas! Glad to see you back.
Manas Bhardwaj 16-Aug-12 1:38am    
My pleasure. Was on a vacation :)!
 
Share this answer
 
v2
Comments
Nimisha Mary John 10-Aug-12 5:02am    
I want the code with imagecontrol ,not with fileupload,;Thats the actual problem,
Santhosh Kumar Jayaraman 10-Aug-12 5:04am    
are you talking about asp:Image?
Nimisha Mary John 10-Aug-12 5:05am    
Yes yes
Santhosh Kumar Jayaraman 10-Aug-12 5:19am    
let me know if the updated link helps you
Santhosh Kumar Jayaraman 10-Aug-12 5:09am    
Check this link.
I updated the solution.
http://stackoverflow.com/questions/8374284/save-image-from-image-control-to-website-directory
System.Drawing.Image im = System.Drawing.Image.FromFile("ImageUrl");
im.Save("path to save");


"ImageUrl" should be full path to get full path u can use

server.mappath("imagename")
 
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