文件名称:java jar包jbig转bmp
文件大小:54KB
文件格式:JAR
更新时间:2018-12-02 03:16:22
java jbig 电子签名 bmp
银联电子签名,jbig压缩格式转为可见格式(如bmp,jpg等)。使用方式如下 public static void main(String[] args) { String data="0000010000000140000000AA000000070800031CFF02FF02C2347F2D42C9D48BEBB224FF02045BB52AB96167389D1409B0FF0251E74C68F12FFF0287ABD82E4A17BF13EDCA5A2AFF027E23FDF3C8C5C78977E7B4F14ACB10C26FA0FF025E7C8C39C6D7B15AB0B880FF022A728537E57493F8E0FF0224F3A175B4CE593DE980662682273A7DF8A0FF0253023A58716E4DA80527D5CBD0505562F8C2EA42D0FF029473BC2009ECFED56FD14937859FDFFF024186841113B48C20CD6F76EE6DE780FF02ABC97AEA8FCCFF02D02150FF02FF02FF02FF02FF02FF02FF02FF02FF02FF02FF02";//签名域 createImg(data, "C:\\Users\\yangcj\\Desktop\\image"); } public static void createImg(String data, String fileName) { try { File file = new File(fileName + ".jbig"); FileOutputStream fis = new FileOutputStream(file); fis.write(hex2byte(data));//16进制转为byte数组,网上方法很多 fis.flush(); fis.close(); JBigInflateConverter jic = new JBigInflateConverter();//调用jar包里面的方法 jic.DoConvert(fileName+".jbig", fileName+".bmp"); } catch (Exception e) { e.printStackTrace(); } }