Hi,
I am facing issue Generic Error Occured in GDI while uploading images to server ,i am using azure portal.
My code is as follows:
[05:58:42 PM]
string directoryPath = @"~\PostImage\";
Image image = Image.FromStream(postedFile.InputStream);
string Filepath = Server.MapPath(directoryPath);
string Filename = Filepath + "PostImageFile.jpg";
result.FieldName = Filename;
image.Save(Filename, ImageFormat.Jpeg);
Please suggest a solution for above error.
Thanks and regards
Prachi Kulkarni

Amit GuptaRank #190 · 12.8K reputationPosted Dec 6, 2016, 3:46 AM EST
Mangesh GRank #294 · 8.6K reputationPosted Dec 6, 2016, 6:31 AM EST