1 | static S uploadToImageServer_rawBytes(byte[] imgData, S name) { |
2 | S page = postPage(imageServerURL() + "upload/" + randomID() /* anti-anti-spam */, "data", bytesToHex(imgData), "name", name); |
3 | print(page); |
4 | Matcher m = Pattern.compile("/images/([0-9]+)").matcher(page); |
5 | if (!m.find()) null; |
6 | ret snippetImgLink(m.group(1)); |
7 | } |
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: | 478 / 535 |
Version history: | 7 change(s) |
Referenced in: | [show references] |