dotnet / dotnet/winforms

Issue with Image.Save

Open
#8,840 4 comments 0 reactions 0 assignees View on GitHub
area-System.Drawing
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

public void Save (System.IO.Stream stream, System.Drawing.Imaging.ImageFormat format); on Image class will throw an exception when the stream lacks seek permission even when the stream has write permission despite the method only needing write permission to work.

HttpWebRequest.GetRequestStream() will return a stream without seek permission on dot net core while returning one with read permission on dot net framework. I noticed this issue when porting my code over from one to the other.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.