Comments (5)
That's odd, I just tried dart2js successfully. Perhaps I didn't hit that code path. I'll look into it.
from archive.
great to hear you successfully used your library with dart2js already! thanks for your help.
from archive.
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.
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.
awesome dude! thanks a lot!
from archive.
Related Issues (20)
- Out of memory error in unpacking a correct 2mb ZIP file on IOS HOT 1
- Provide sync variant of OutputFileStream.close() HOT 6
- I can't extract this file success, Please help me HOT 3
- 3.4.10 is incorrectly versioned HOT 2
- Can't modify archive files HOT 3
- Unzip protected file failed, Please help me. Thanks a lot HOT 12
- zstandard by facebook HOT 1
- zipDirectory - when ZipFileEncoder is initialized with a password and there are subdirectories in the input directory => Null check operator used on a null value
- addDirectory() When compressing an empty directory with nothing in it, the empty directory is discarded HOT 1
- the autoClose parameter of zip_endcode::addFile is not used
- Zip encode with password creates a "Null check operator used on a null value"
- Is it possible to work with dart:io File directly? HOT 5
- Streaming directly from archive files
- ArchiveFile.string incorrect encodes non-ASCII data (causes dataloss) HOT 3
- It's slow to read zip headers HOT 4
- If it's possible to add a callback function so that can be show now extracting file in progress HOT 2
- Semantic change in Dart 3.5 HOT 4
- Remove the dep on package:pointycastle? HOT 4
- 3.5 Missing property ZipFileEncoder.zipPath HOT 2
- Reusing `AchiveFile` can result in corrupted archives HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archive.