vb.net - Restrict file size using -


i have create sub routine using vb.net compress files "file.zip" file, problem "file.zip" must have maximum size of 2 mb. don't know how it, if it's possible. nice if has example show me.

it not possible in general case. example if have 2gb movie file, no lossless compression algorithm ever 2mb.

one solution "chunk" zip file. is, divide parts individually no more 2mb. 7-zip has support this. can use .net api vb.net. i'm not sure whether api provides direct support chunking. if not, can start 7-zip program using process.start().


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -