Skip to content

Commit

Permalink
Remove Base64 object and respective file.
Browse files Browse the repository at this point in the history
This object is only used for example purposes and not by the library itself, since modern browsers already implement window.btoa use this instead on the example page.
  • Loading branch information
aadsm committed Nov 11, 2013
1 parent 7aee9be commit 63a9c4d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 74 deletions.
8 changes: 1 addition & 7 deletions LICENSE.md
Expand Up @@ -8,10 +8,4 @@ Copyright (c) 2010 António Afonso
[BSD License](http://opensource.org/licenses/BSD-3-Clause)

Copyright (c) 2010 Joshua Kifer
[BSD License](http://opensource.org/licenses/BSD-3-Clause)

src/base64.js
=============
http://www.webtoolkit.info/javascript-base64.html
[Creative Commons](http://creativecommons.org/licenses/by/2.0/uk/)
https://web.archive.org/web/20120906051836/http://www.webtoolkit.info/license
[BSD License](http://opensource.org/licenses/BSD-3-Clause)
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -119,6 +119,18 @@ for AAC:
genre: string
}

### How to show the cover art from the byte array:

You can do this by using a `data:` url.

```javascript
var base64String = "";
for (var i = 0; i < image.data.length; i++) {
base64String += String.fromCharCode(image.data[i]);
}
var dataUrl = "data:" + image.format + ";base64," + window.btoa(base64String);
```

### Currently supported frames on ID3:

* APIC/PIC: Attached picture
Expand Down

0 comments on commit 63a9c4d

Please sign in to comment.