-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PictureBox
to use HttpClient
instead of using WebRequest
#1756
Comments
@RussKie I see value for ILLink/NativeAOT scenario to be able to disable reading data from the web streams. I agree that this feature allow load data from URLs but this feature bring additional dependency which may be not wanted. Is it possible to put this feature (loading images from remote addresses) behind AppContext switche similar to how it is proposed here dotnet/aspnetcore#31561 (comment) |
We can certainly consider this. |
Problem description:
PictureBox
uses an instance ofWebRequest
to load images.It needs to be replaces with a cached instance of
HttpClient
as suggest in #1696 (comment)Expected behavior:
Minimal repro:
https://github.com/dotnet/winforms/blob/release/3.0/src/System.Windows.Forms/src/System/Windows/Forms/PictureBox.cs#L558-L564
The text was updated successfully, but these errors were encountered: