Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1013903 // bytesFromDataURL

JavaX fragment (include)

static byte[] bytesFromDataURL(S url) {
  S pref = "base64,";
  int i = indexOf(url, pref);
  if (i < 0) null;
  ret base64decode(substring(url, i+l(pref)));
}

Author comment

Began life as a copy of #1007320

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013903
Snippet name: bytesFromDataURL
Eternal ID of this version: #1013903/1
Text MD5: e8c6141ffc9b336f2a2033fe75787be8
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-14 18:53:18
Source code size: 164 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 345
Referenced in: [show references]