|
@@ -33,7 +33,7 @@ public class GoogleBarCodeUtil {
|
|
/**
|
|
/**
|
|
* 条形码宽度
|
|
* 条形码宽度
|
|
*/
|
|
*/
|
|
- private static final int WIDTH = 300;
|
|
|
|
|
|
+ private static final int WIDTH = 400;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 条形码高度
|
|
* 条形码高度
|
|
@@ -175,7 +175,7 @@ public class GoogleBarCodeUtil {
|
|
ByteArrayOutputStream os = null;
|
|
ByteArrayOutputStream os = null;
|
|
try {
|
|
try {
|
|
BufferedImage image = GoogleBarCodeUtil.getBarCode(content);
|
|
BufferedImage image = GoogleBarCodeUtil.getBarCode(content);
|
|
- os = new ByteArrayOutputStream();
|
|
|
|
|
|
+ os = new ByteArrayOutputStream();
|
|
ImageIO.write(image, "png", os);
|
|
ImageIO.write(image, "png", os);
|
|
String imageBase64 = Base64Util.encode(os.toByteArray());
|
|
String imageBase64 = Base64Util.encode(os.toByteArray());
|
|
|
|
|