1. public byte[] getBase614(String base614) {
    2. BASE64Decoder decoder = new BASE64Decoder();
    3. try {
    4. base614 = base614.substring(base614.indexOf(",", 1) + 1, base614.length());
    5. byte[] bytes = decoder.decodeBuffer(base614);
    6. for (int i = 0; i < bytes.length; ++i) {
    7. if (bytes[i] < 0) {// 调整异常数据
    8. bytes[i] += 256;
    9. }
    10. }
    11. return bytes;
    12. } catch (Exception e) {
    13. System.out.println("io异常");
    14. }
    15. return null;
    16. }