Author: aliusmankhan | Posted on: 5/8/2009 1:23:35 AM | Views : 275

 dear friends
 I use the below code to upload image in original size

1 String ext = System.IO.Path.GetExtension(FileUpload1.FileName);
2 int Count = System.IO.Directory.GetFiles(Server.MapPath("~/up/FIX/")).Length;
3
4 FileUpload1.SaveAs(MapPath("~/up/FIX/" + Count.ToString() + "-aliusmankhan-" + ext));
5
  
then i use the below code to also save it as resized
 
1 System.Drawing.Image img1 = System.Drawing.Image.FromFile(MapPath("~/up/FIX/") + Count.ToString() + "-aliusmankhan-" + ext);
2
3 Go to the complete details ...