Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed base64 to byte array conversion
- Loading branch information
André Fiedler
committed
Sep 5, 2012
1 parent
15b0911
commit 536bf2c
Showing
5 changed files
with
17,860 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
Oops, something went wrong.