Skip to content

decompress not working #5

Description

@HPRaval

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions