Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1005851 // uploadToImageServer_new - used internally only

JavaX fragment (include)

1  
static S uploadToImageServer_new(BufferedImage img, S name) {
2  
  ret uploadToImageServer_new(null, img, name);
3  
}
4  
5  
static S uploadToImageServer_new(File f, BufferedImage img, S name) {
6  
  byte[] imgData = f == null ? toPNG(img) : loadBinaryFile(f);
7  
  ret uploadToImageServer_rawBytes(imgData, name);
8  
}

Author comment

Began life as a copy of #1004609

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1005851
Snippet name: uploadToImageServer_new - used internally only
Eternal ID of this version: #1005851/5
Text MD5: f8d4d7aa4d3d811bd5ae792591a74f69
Author: stefan
Category: javax / images
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-10 22:36:32
Source code size: 305 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 480 / 523
Version history: 4 change(s)
Referenced in: [show references]