Skip to content

Commit

Permalink
Merge pull request #25 from JW-CH/dev.openapi
Browse files Browse the repository at this point in the history
Fix stream position not 0
  • Loading branch information
JW-CH authored Mar 16, 2024
2 parents a14af2e + 48af1a8 commit 091f99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ImmichFrame/Models/AssetResponseDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ private async Task<Stream> DownloadImageAsync(string localPath)
var stream = data.Stream;
var ms = new MemoryStream();
stream.CopyTo(ms);
ms.Position = 0;
if (Settings.CurrentSettings.DownloadImages)
{
// save to folder
using (var fs = File.Create(localPath))
{
ms.Position = 0;
ms.CopyTo(fs);
ms.Position = 0;
return ms;
Expand Down

0 comments on commit 091f99d

Please sign in to comment.