Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decompress not working #5

Open
HPRaval opened this issue Mar 6, 2017 · 0 comments
Open

decompress not working #5

HPRaval opened this issue Mar 6, 2017 · 0 comments

Comments

@HPRaval
Copy link

HPRaval commented Mar 6, 2017

I am using your code in swift 2.3. I am able to compress data but when i decompress it, it doesn't show me original string. Here is my code.

 let stringData = "You probably want to read your data from a file or another data source rather than using string literals.".dataUsingEncoding(NSUTF8StringEncoding)!
       // var error: NSError? = nil
        let compressedData = try! BZipCompression.compressedDataWithData(stringData, blockSize: BZipDefaultBlockSize, workFactor: BZipDefaultWorkFactor)

        print(compressedData)
        
        let decompress = try! BZipCompression.decompressedDataWithData(compressedData)
        
        print(decompress)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant