Skip to content
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

Feature/ Add byte[] download methods #64

Prev Previous commit
Next Next commit
Update Utilities.Rest/Packages/com.utilities.rest/Runtime/Rest.cs
Co-authored-by: Stephen Hodgson <[email protected]>
  • Loading branch information
SimonDarksideJ and StephenHodgson committed Jan 6, 2024
commit f86797d2dd0304926b5ac8696db781c793f17f7a
1 change: 1 addition & 0 deletions Utilities.Rest/Packages/com.utilities.rest/Runtime/Rest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,7 @@ public static async Task<byte[]> DownloadFileBytesAsync(

var filePath = await DownloadFileAsync(url, fileName, parameters, false, cancellationToken);
StephenHodgson marked this conversation as resolved.
Show resolved Hide resolved
var absolutefilePath = filePath.Replace("file:https://", string.Empty);

if (File.Exists(absolutefilePath))
SimonDarksideJ marked this conversation as resolved.
Show resolved Hide resolved
{
try
Expand Down