filename = Path.GetFileName(FileUpload.FileName);
HttpPostedFile pf = FileUpload.PostedFile;
System.Drawing.Image img2 = System.Drawing.Image.FromStream(pf.InputStream);
System.Drawing.Image bmp2 = img2.GetThumbnailImage(200, 210, null, IntPtr.Zero);
Imagename = objUser.UserID + filename;
Imagepath = "D:\\Shopy_Web_21-6-12\\Shopy\\Images" + Imagename;
bmp2.Save(Path.Combine(@"D:\Shopy_Web_21-6-12\Shopy\Images", Imagename));
我已将文件上传转换为两个缩略图并将它们保存在本地,但现在我需要检索图像以将其显示在用户的个人资料中。如何让图像从我存储的位置显示?