资 源 简 介
银联电子签名,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"