Permalink
Browse files

migration guide : add .asBinary() to the example

Fix issue #100 : the migration guide said that the equivalent of .data
is .asText() but the utf8 conversion is not always welcomed.
  • Loading branch information...
1 parent 98c7281 commit 973b44a9f62c097c7f33e68e94ff24d073980758 @dduponchel dduponchel committed Feb 18, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.html
View
4 index.html
@@ -631,10 +631,14 @@ <h2 id="migrating_guide">Migrating Guide</h2>
<pre>// before
zip.file("test.txt").data;
zip.files["test.txt"].data;
+zip.file("image.png").data;
+zip.files["image.png"].data;
// after
zip.file("test.txt").asText();
zip.files["test.txt"].asText();
+zip.file("image.png").asBinary();
+zip.files["image.png"].asBinary();
</p>
</div>

0 comments on commit 973b44a

Please sign in to comment.