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

4
LINES

< > BotCompany Repo | #1007252 // decodeImage - make BufferedImage from byte array (JPEG, PNG etc)

JavaX fragment (include)

static BufferedImage decodeImage(byte[] data) ctex {
  if (empty(data)) null;
  ret ImageIO.read(new ByteArrayInputStream(data));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1007252
Snippet name: decodeImage - make BufferedImage from byte array (JPEG, PNG etc)
Eternal ID of this version: #1007252/2
Text MD5: 8facd047a2a53c2fd0bd270abb414e81
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-11 16:53:03
Source code size: 134 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 460 / 488
Version history: 1 change(s)
Referenced in: [show references]