Transpiled version (10960L) is out of date.
static S uploadImage(BufferedImage img, S name) { ret uploadImageToServer(img, name); } static S uploadImage(S name, BufferedImage img) { ret uploadImageToServer(img, name); } static S uploadImage(File f, BufferedImage img, S name) { ret uploadImageToServer(f, img, name); } static S uploadImage(File f) { ret uploadImageToServer(f); } sS uploadImage(S urlOrPath) { if (isAbsoluteURL(urlOrPath)) { byte[] data = loadBinaryPage(urlOrPath); assertTrue(isJPEG_GIF_PNG(data)); ret uploadToImageServer_rawBytes(data, urlOrPath); } else ret uploadImage(newFile(urlOrPath)); }
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: | 758 / 1143 |
Version history: | 9 change(s) |
Referenced in: | #1000754 - uploadData function #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) #3000383 - Answer for funkoverflow (>> t=1, f=0 okay) |