diff --git a/src/bcf-toolkit/Utils/ZipArchiveEntryExtensions.cs b/src/bcf-toolkit/Utils/ZipArchiveEntryExtensions.cs index bf280fd..6411ae3 100644 --- a/src/bcf-toolkit/Utils/ZipArchiveEntryExtensions.cs +++ b/src/bcf-toolkit/Utils/ZipArchiveEntryExtensions.cs @@ -100,9 +100,9 @@ public static string Snapshot(this ZipArchiveEntry entry) { var extension = entry.FullName.Split(".").Last(); var mime = $"data:image/{extension};base64"; var buffer = new byte[entry.Length]; - var image = entry + entry .Open() - .Read(buffer, 0, buffer.Length); + .ReadExactly(buffer, 0, buffer.Length); var base64String = Convert.ToBase64String(buffer); return $"{mime},{base64String}"; }