static S uploadToImageServer_new(BufferedImage img, S name) { byte[] imgData = toPNG(img); S page = postPage("http://ai1.lol/images/raw/upload", "data", bytesToHex(imgData), "name", name); print(page); Matcher m = Pattern.compile("/raw/([0-9]+)").matcher(page); if (!m.find()) null; ret "http://ai1.lol/images/raw/" + m.group(1); }