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

11
LINES

< > BotCompany Repo | #1011247 // subBot_serveJPEG

JavaX fragment (include)

static O subBot_serveJPEG(BufferedImage img) {
  ret call(getMainBot(), 'serveByteArray, toJPG(img), "image/jpeg");
}

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

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

Author comment

Began life as a copy of #1011246

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: #1011247
Snippet name: subBot_serveJPEG
Eternal ID of this version: #1011247/4
Text MD5: ba9e3cc037ef9887b972e3fb0daca4e2
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-27 08:43:09
Source code size: 340 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 467 / 503
Version history: 3 change(s)
Referenced in: [show references]