bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Seth Ladd
If you have a File object (say, one stored using the FileSystem API), it's possible to seek into it and read chunks without reading the entire file into memory:
varurl="filesystem:http://example.com/temporary/myfile.zip";window.webkitResolveLocalFileSystemURL(url,function(fileEntry){fileEntry.file(function(file){varreader=newFileReader();reader.onload=function(e){varab=e.target.result;// arrayBuffer containing bytes 0-10 of file.varuInt8Arr=newUint8Array(ab);...};varblob=file.webkitSlice(0,10,"application/zip");// mimetype is optionalreader.readAsArrayBuffer(blob);},errorHandler);},errorHandler);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2011-08-04 UTC."],[],[]]