Dealing with Images
protected void btnUpload_Click(object sender, EventArgs e)
{
string szDestDir = Server.MapPath("./HardImages/UploadedImages");
string szFile = Path.GetFileName(flImage.PostedFile.FileName);
string szDestPath = Path.Combine(szDestDir, szFile);
flImage.PostedFile.SaveAs(szDestPath);
imgPreview.ImageUrl = System.Web.HttpContext.Current.Request.ApplicationPath + "/HardImages/UploadedImages/" + szFile;
}
in which imgPreview is an image control and flImage is a file upload control. The image finally gets saved into "Website/HardImages/UploadedImages" folder.
Now I have to save a thumbnail of this image into a different folder. So how can I convert this image into thumbnail and save it??
Thanks in Advance

