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)

static S uploadToImageServer_new(BufferedImage img, S name) {
  ret uploadToImageServer_new(null, img, name);
}

static S uploadToImageServer_new(File f, BufferedImage img, S name) {
  byte[] imgData = f == null ? toPNG(img) : loadBinaryFile(f);
  ret uploadToImageServer_rawBytes(imgData, name);
}

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: 479 / 522
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009027 - uploadToImageServer_new_jpg - used internally only
#1015066 - uploadToImageServer_rawBytes