sergey-tihon / Clippit

Fresh PowerTools for OpenXml
https://sergey-tihon.github.io/Clippit/
MIT License
50 stars 19 forks source link

StreamHelpers.ComputeHash issue #55

Closed sergey-tihon closed 2 years ago

sergey-tihon commented 2 years ago

Strange issue of hash calculation

System.IO.FileFormatException:
   at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Read (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Read (WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35)
   at System.Security.Cryptography.HashAlgorithm.ComputeHash (mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
   at Clippit.StreamHelpers.ComputeHash (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.ImageData..ctor (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.PowerPoint.FluentPresentationBuilder.CopyRelatedImage (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.PowerPoint.FluentPresentationBuilder.CopyRelatedPartsForContentParts (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.PowerPoint.FluentPresentationBuilder.AppendSlides (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.PowerPoint.PresentationBuilder.BuildPresentation (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)
   at Clippit.PowerPoint.PresentationBuilder.BuildPresentation (Clippit, Version=1.12.0.0, Culture=neutral, PublicKeyToken=2928a30693862cf5)