上传者: yangchangji
|
上传时间:2023/12/20 9:30:06
|
文件大小:54KB
|
文件类型:jar
javajar包jbig转bmp
银联电子签名,jbig压缩格式转为可见格式(如bmp,jpg等)。
使用方式如下publicstaticvoidmain(String[]args){ Stringdata="0000010000000140000000AA000000070800031CFF02FF02C2347F2D42C9D48BEBB224FF02045BB52AB96167389D1409B0FF0251E74C68F12FFF0287ABD82E4A17BF13EDCA5A2AFF027E23FDF3C8C5C78977E7B4F14ACB10C26FA0FF025E7C8C39C6D7B15AB0B880FF022A728537E57493F8E0FF0224F3A175B4CE593DE980662682273A7DF8A0FF0253023A58716E4DA80527D5CBD0505562F8C2EA42D0FF029473BC2009ECFED56FD14937859FDFFF024186841113B48C20CD6F76EE6DE780FF02ABC97AEA8FCCFF02D02150FF02FF02FF02FF02FF02FF02FF02FF02FF02FF02FF02";//签名域 createImg(data,"C:\\Users\\yangcj\\Desktop\\image"); } publicstaticvoidcreateImg(Stringdata,StringfileName){ try{ Filefile=newFile(fileName+".jbig"); FileOutputStreamfis=newFileOutputStream(file); fis.write(hex2byte(data));//16进制转为byte数组,网上方法很多 fis.flush(); fis.close(); JBigInflateConverterjic=newJBigInflateConverter();//调用jar包里面的方法 jic.DoConvert(fileName+".jbig",fileName+".bmp"); }catch(Exceptione){ e.printStackTrace(); } }
本软件ID:9262483