SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Browse by Tags

All Tags » compressed size (RSS)
  • Re: Get a compressed size of the files before adding the files to existing zip

    Hi David , Could you please reply to my previous post(Tue, Nov 12 2013 10:59 AM ) ? Thanks, Ravi
    Posted to Forum by bravichandran on 11-12-2013
  • Re: Get a compressed size of the files before adding the files to existing zip

    Hi David, Thanks for your reply. If I compress large files in memory it ends up with memory leak even though I am closing and disposing streams. Please help. private double GetFileSize(string fileName) { double eachFileSize = 0f; int sizeread; int size = 0; int buffsiz = 1048576; FileStream fs = new...
    Posted to Forum by bravichandran on 11-12-2013
  • Get a compressed size of the files before adding the files to existing zip

    Hi , I need to get a compressed size of the files before adding the files to existing zip. Is that possible in ICSharpZip Lib? For eg: In the below code, before zipFile.Add() I need to find the compressed size. string[ files = Directory.GetFiles(fullPath); string folderPath = Path.GetDirectoryName(fullPath...
    Posted to Forum by bravichandran on 11-08-2013
  • entry.size = -1 when unzipping file created on MAC OSX

    Hi All, Hopefully someone will be able to help me with a problem i am facing when i am unzipping a file. I am using SharpZipLib to read the bytes from a stream for a specific file. The code i am using is: public static byte [ ReadFileFromZipStream( Stream stream, string filename, string password = null...
    Posted to Forum by timmarsh on 10-03-2012
  • Re: Compress returns 0 bytes length

    Hi David I agree with you; but this is part of a personal project, not distributed. I'll change the code in order to use thr ZipLib assembly (I need time !) Best Regards, Jerome
    Posted to Forum by jsiot on 02-08-2012
  • Re: Compress returns 0 bytes length

    Hi David I solved the problem like this : I protect the code with a try/catch block (that is not needed, *theorycally*), and all results arae magically ok. // target size increased, in some cases, the compressed size is bigger than the source one byte[ compressedBlob = new byte[(int)(blob.Length * 1...
    Posted to Forum by jsiot on 02-07-2012
  • Re: Compress returns 0 bytes length

    Hi David I have a wrapper class that exposes the methods of ICSharpCode.SharpZipLib.dll (version 0.85.4.369): [DllImport(DllName)] public extern static int Compress(Byte[ sourceBuffer, int sourceBufferLength, Byte[ destinationBuffer); I don't have the code of the dll, so I can't reply to you...
    Posted to Forum by jsiot on 02-03-2012
  • Compress returns 0 bytes length

    Hi I use the Compress method on a byte[. *Occasionally* , Compress returns a 0-length byte array, instead of returning the espected one (source byte[ size = 512, target expected size 141) Amazingly, a friend of mine's hasn't this problem (with same data) I run my program on a Windows XP computer...
    Posted to Forum by jsiot on 02-01-2012
  • What happened to .CompressedSize?

    I'm updating an application that until now has used an older version of SharpZipLib. Some important code depends on the .CompressedSize property of the InflaterOutputStream, GZipOutputStream and InflaterInputStream classes. When I reference a current version of ICSharpCode.SharpZipLib.DLL, those...
    Posted to Forum by Jerry.Houston on 01-23-2010
  • Limiting .zip file size

    I am zipping files up and attaching the zip file to an email. I want to limit the size of the attached zip file and send multiple email messages if necessary. Is there an example of how to do this? Specifically, is there anyway to know before adding a file if it will push the size of the zip file over...
    Posted to Forum by togi on 07-07-2009
Page 1 of 2 (12 items) 1 2 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.