Skip to content

Commit

Permalink
fixed base64 to byte array conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
André Fiedler committed Sep 5, 2012
1 parent 15b0911 commit 536bf2c
Show file tree
Hide file tree
Showing 5 changed files with 17,860 additions and 7 deletions.
25 changes: 25 additions & 0 deletions demo/LocalFilesystem/lib/base64-binary-test/index.html
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Base64 to Binary Test</title>

<!-- Base64 to ByteArray Converter -->
<script src="../base64-binary.js"></script>

<!-- Test -->
<!--script src="tracemonkey.base64.js"></script-->
<!_-script src="tracemonkey.bin.js"></script-->
<script>
var tracemonkeyBase64 = 'data:application/pdf;base64,'
+ 'JVBERi0xLjQKMyAwIG9iaiA8PAovTGVuZ3RoIDQ2MjIgICAgICAKL0ZpbHRlciAvRmxhdGVEZWNv';

// replace data:application/pdf;base64,
tracemonkeyBase64 = tracemonkeyBase64.substring(28);
console.log(tracemonkeyBase64);

</script>

</head>
<body>
</body>
</html>

0 comments on commit 536bf2c

Please sign in to comment.