MCPcopy Create free account
hub / github.com/f0ng/captcha-killer-modified / byte2img

Method byte2img

src/main/java/utils/Util.java:209–221  ·  view source on GitHub ↗
(byte[] img)

Source from the content-addressed store, hash-verified

207 }
208
209 public static ImageIcon byte2img(byte[] img) {
210 InputStream buffin = new ByteArrayInputStream(img);
211 Image image = null;
212 ImageIcon icon = null;
213 try {
214 image = ImageIO.read(buffin);
215 icon = new ImageIcon(image);
216 } catch (IOException e) {
217// BurpExtender.stderr.println(e.getMessage());
218 icon = null;
219 }
220 return icon;
221 }
222
223 public static byte[] subBytes(byte[] src, int begin, int count) {
224 byte[] bs = new byte[count];

Callers 3

GUIMethod · 0.95
runMethod · 0.95
getValueAtMethod · 0.80

Calls

no outgoing calls

Tested by 1

GUIMethod · 0.76