static byte[] rawImageFromImageServer(S md5) ctex { assertTrue(isMD5(md5)); File dir = getCacheProgramDir("Images-by-MD5"); File file = new File(dir, md5 + ".png"); if (file.exists() && file.length() != 0) pcall { ret ImageIO.read(file); } byte[] data = loadBinaryPage(imageServerLink(md5)); assertTrue(isPNG(data)); ret data; }
Began life as a copy of #1005781
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: | #1007518 |
Snippet name: | rawImageFromImageServer |
Eternal ID of this version: | #1007518/3 |
Text MD5: | fae660820b8e225af9e2ce3be7deb3f3 |
Author: | stefan |
Category: | javax / images |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-25 22:56:04 |
Source code size: | 364 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 503 / 520 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |