Transpiled version (10960L) is out of date.
1 | static S uploadImage(BufferedImage img, S name) { |
2 | ret uploadImageToServer(img, name); |
3 | } |
4 | |
5 | static S uploadImage(S name, BufferedImage img) { |
6 | ret uploadImageToServer(img, name); |
7 | } |
8 | |
9 | static S uploadImage(File f, BufferedImage img, S name) { |
10 | ret uploadImageToServer(f, img, name); |
11 | } |
12 | |
13 | static S uploadImage(File f) { |
14 | ret uploadImageToServer(f); |
15 | } |
16 | |
17 | sS uploadImage(S urlOrPath) { |
18 | if (isAbsoluteURL(urlOrPath)) { |
19 | byte[] data = loadBinaryPage(urlOrPath); |
20 | assertTrue(isJPEG_GIF_PNG(data)); |
21 | ret uploadToImageServer_rawBytes(data, urlOrPath); |
22 | } else |
23 | ret uploadImage(newFile(urlOrPath)); |
24 | } |
Began life as a copy of #1000566
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1000741 |
Snippet name: | uploadImage - synonym of uploadImageToServer |
Eternal ID of this version: | #1000741/10 |
Text MD5: | c837c20ba7bd35e2f3b7e97016424063 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-09 01:27:34 |
Source code size: | 624 bytes / 24 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 689 / 1065 |
Version history: | 9 change(s) |
Referenced in: | [show references] |