Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Generic Error Occurred in GDI
panse vaishali
Dec 6 2016 7:32 AM
235
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Why is an out parameter not allowed within an anonymous meth
What are the advantages and disadvantages ...