Code Monkey home page Code Monkey logo

Comments (5)

brendan-duncan avatar brendan-duncan commented on August 21, 2024

That's odd, I just tried dart2js successfully. Perhaps I didn't hit that code path. I'll look into it.

from archive.

TomTasche avatar TomTasche commented on August 21, 2024

great to hear you successfully used your library with dart2js already! thanks for your help.

from archive.

brendan-duncan avatar brendan-duncan commented on August 21, 2024

Looks like the problem is FileReader.result isn't returning a byte buffer
that I can read post dart2js (it doesn't even implement the length method).
I'll look into it to see if there's some way I can extract the data from
it.

On Tue, Feb 4, 2014 at 12:52 PM, Thomas Taschauer
[email protected]:

great to hear you successfully used your library with dart2js already!
thanks for your help.

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-34105688
.

from archive.

brendan-duncan avatar brendan-duncan commented on August 21, 2024

I just committed the fix. I'm in the middle of some other stuff so I won't be pushing the pub version yet, but if you don't want to use the git version, a quick fix on your side would be:
import 'dart:typed_data';
...
void onZipLoaded(ProgressEvent event) {
FileReader reader = event.currentTarget;

var bytes = new Uint8List.view(reader.result); //<-- typecast the ByteBuffer as a Uint8List

Archive archive = new ZipDecoder().decodeBytes(bytes);
...
}

from archive.

TomTasche avatar TomTasche commented on August 21, 2024

awesome dude! thanks a lot!

from archive.

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.