Skip to content

Commit

Permalink
Changed GetByteArrayAsync(string) to GetByteArrayAsync(uri)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-sexenian committed Sep 11, 2023
1 parent ffc7e9b commit 502244f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5560,7 +5560,7 @@ private static Bitmap BitmapCreateFromStream(string filePathOrUrl)
{
try
{
byte[] data = httpClient.GetByteArrayAsync(filePathOrUrl).Result;
byte[] data = httpClient.GetByteArrayAsync(uri).Result;
using (MemoryStream mem = new MemoryStream(data))
{
return new Bitmap(mem);
Expand Down Expand Up @@ -5592,7 +5592,7 @@ private static Image ImageCreateFromStream(string filePathOrUrl)
{
try
{
byte[] data = httpClient.GetByteArrayAsync(filePathOrUrl).Result;
byte[] data = httpClient.GetByteArrayAsync(uri).Result;
using (MemoryStream mem = new MemoryStream(data))
{
return Image.FromStream(mem);
Expand Down

0 comments on commit 502244f

Please sign in to comment.