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).

static O subBot_servePNG(BufferedImage etc img) {
  ret call(getMainBot(), 'serveByteArray, toPNG(img), "image/png");
}

static O subBot_servePNG(byte[] imgData) {
  ret call(getMainBot(), 'serveByteArray, imgData, "image/png");
}

static O subBot_servePNG(File file) {
  ret call(getMainBot(), 'serveFile, file, "image/png");
}

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: 346 / 473
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1014143 - subBot_serve404