static S uploadToImageServer_rawBytes(byte[] imgData, S name) { S page = postPage(imageServerURL() + "upload/" + randomID() /* anti-anti-spam */, "data", bytesToHex(imgData), "name", name); print(page); Matcher m = Pattern.compile("/images/([0-9]+)").matcher(page); if (!m.find()) null; ret snippetImgLink(m.group(1)); }
Began life as a copy of #1005851
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1015066 |
Snippet name: | uploadToImageServer_rawBytes |
Eternal ID of this version: | #1015066/8 |
Text MD5: | 4a3ebed4a7b0177d11a24ff6025ae4ea |
Author: | stefan |
Category: | javax / images |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-25 09:57:51 |
Source code size: | 336 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 479 / 536 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |