Skip to content

Commit

Permalink
Fix stream position not 0
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-CH committed Mar 16, 2024
1 parent a14af2e commit 48af1a8
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 48af1a8

Please sign in to comment.