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

11
LINES

< > BotCompany Repo | #1014039 // subBot_servePNG

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3305L/18K).

1  
static O subBot_servePNG(BufferedImage etc img) {
2  
  ret call(getMainBot(), 'serveByteArray, toPNG(img), "image/png");
3  
}
4  
5  
static O subBot_servePNG(byte[] imgData) {
6  
  ret call(getMainBot(), 'serveByteArray, imgData, "image/png");
7  
}
8  
9  
static O subBot_servePNG(File file) {
10  
  ret call(getMainBot(), 'serveFile, file, "image/png");
11  
}

Author comment

Began life as a copy of #1011247

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014039
Snippet name: subBot_servePNG
Eternal ID of this version: #1014039/4
Text MD5: 0860414602ddd3dea8ebe5180da07511
Transpilation MD5: 55f8b35a531f4c08bd7e98d08743ff1d
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-04 23:16:25
Source code size: 338 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 289 / 372
Version history: 3 change(s)
Referenced in: [show references]