Search results for query: *

  1. S

    ZipArchive, 3mf and compression

    guys, guys GUYS! this is it! I used ZipArchive to insert every file on its own with "/" as path-separator and it works. ZipArchive zip = System.IO.Compression.ZipFile.Open(zipPath, ZipArchiveMode.Create); zip.CreateEntryFromFile(tempPath+@"/[Content_Types].xml", @"[Content_Types].xml")...
  2. S

    ZipArchive, 3mf and compression

    Thanks for your help so far guys. You'll have to take babysteps with me here. where do I add the <runtime> <AppContextSwitchOverrides value="Switch.System.IO.Compression.ZipFile.UseBackslash=false" /> </runtime> in the *.csproj file? I'm using VS for all of this and targeting .net framework 4.8
  3. S

    ZipArchive, 3mf and compression

    I attached another pair of examples that, to me, look pretty much identical in compression. I'm really scratching my head here.
  4. S

    ZipArchive, 3mf and compression

    Sure, code is just this string startPath = tempFolderPath; string zipPath = Path.Combine(_Path, _Filename); ZipFile.CreateFromDirectory(startPath, zipPath, CompressionLevel.Fastest, false); attached the some files zipped by Windows, and zipped by c# ZipFile. If you rename them to *.3mf you can...
  5. S

    ZipArchive, 3mf and compression

    I have been thinking about that. The doumentation doesn't specify anything about compression levels. I tested the available modes in ZipFile's CompressionLevel (none, fastest, optimal) with no difference. 3mf specification: https://3mf.io/specification/
  6. S

    ZipArchive, 3mf and compression

    Here is hp's validator: https://dev.3mf.hp3d.io/ and attached the .3mf/zip file
  7. S

    ZipArchive, 3mf and compression

    Hi there, I have a very weird problem I just can't wrap my head around and not even sure where to ask this. Basically I'm writing a converter for CAD models to the .3mf file format. .3mf files are renamed .zip files that have a fixed folder structure and use .xml for their internal data. I use...
Back
Top Bottom