(byte[] img)
| 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]; |
no outgoing calls