Code Monkey home page Code Monkey logo

Comments (4)

1024jp avatar 1024jp commented on May 23, 2024

Hmm, it can related to #4.
I'll check the code later.

from gzipswift.

1024jp avatar 1024jp commented on May 23, 2024

Anyway, did you confirmed the followings?:

  1. The data (file) can be decompressed with other application (e.g. Finder).
  2. The error always raises, or with a specific data.

from gzipswift.

edwin123chen avatar edwin123chen commented on May 23, 2024

thanks for the answer.
Actually, i try to compose data from network (with below url: http://hq.sinajs.cn/list=sh600208).
In the closure, i am using below code:
var task = session.dataTaskWithURL(url) {
(data, response, error) -> Void in
if error !=nil {
...
}else{
println("data is: (data.gunzippedData())")
}
}

Then error raise in the console to say: Decompression failed: incorrect header check.

from gzipswift.

edwin123chen avatar edwin123chen commented on May 23, 2024

Anyway, did you confirmed the followings?:

The data (file) can be decompressed with other application (e.g. Finder).
=>yes, it can be open in chrome
=> and if i print the data directly, i can print some data even it is not my expected data format
The error always raises, or with a specific data.
=>yes. the error always raise...

from gzipswift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.