M
M
macrohabr2018-11-08 15:24:22
C++ / C#
macrohabr, 2018-11-08 15:24:22

How to programmatically split a zip into parts?

Hi all.
What you need:
There are several files of different sizes from kilobytes to tens of megabytes (pdf)
When creating an archive, it is necessary to split it into parts no more than 10MB
Accordingly, if one file is larger than 10MB, it is also cut into parts into different archives:
fileSet_part1.zip ( file1.docx, file2.pdf )
fileSet_part2.zip ( file2.pdf )
fileSet_part3.zip ( file2.pdf , file3.docx, file4.xlsx)
....
C# ASP.NET

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
macrohabr, 2018-11-08
@macrohabr

Thank you. already found a solution. If anyone is interested:
https://ru.stackoverflow.com/questions/278407/How-...

G
Griboks, 2018-11-08
@Griboks

Split your file into pieces of 10mb+remainder (called byte array slices).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question