Speednet
Member since Jun 5, 2018
- Profile: /members/13772-speednet.htm
- Comments: 3
Recent Blog Comments By Speednet
-
Exploring Plain-Text Data URIs And The Anchor Download Attribute In JavaScript
Posted on Jun 7, 2018 at 11:31 AM
@Ben, I forgot to mention that if your data URI is base64 encoded, you would need to change the first var line to: var binStr = atob( dataUri.split( ',' )[1] ), Also, the data URI should not be URLEncoded. (Or you would need to add URL decoding to the first var.)... read more »
-
Exploring Plain-Text Data URIs And The Anchor Download Attribute In JavaScript
Posted on Jun 6, 2018 at 9:51 AM
@Ben, I used the following function to convert the data URL into a Blob: function dataUriToBlob( dataUri ) { var binStr = dataUri.split( ',' )[1], len = binStr.length, arr = new Uint8Array( len ), mimeString = dataUri.split( ',' )[0].split( ':' )[1].split( ';' )[0] for ( var i = 0; i ... read more »
-
Exploring Plain-Text Data URIs And The Anchor Download Attribute In JavaScript
Posted on Jun 5, 2018 at 8:45 PM
Thanks so much for this article! This technique immediately solved a major problem I was having with a tool at Lottery Post. It is a lottery combinations generator that generates all possible lottery combinations given a set of user-defined parameters, using a JavaScript Web Worker. (Avail... read more »