Java Base64 Convert to base642byte(String base64)

Here you can find the source of base642byte(String base64)

Description

basebyte

License

Apache License

Declaration

public static byte[] base642byte(String base64) throws IOException 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import sun.misc.BASE64Decoder;

import java.io.IOException;

public class Main {
    public static byte[] base642byte(String base64) throws IOException {
        BASE64Decoder base64Decoder = new BASE64Decoder();
        return base64Decoder.decodeBuffer(base64);
    }//w ww .j a v a2 s .  c o m
}

Related

  1. base64StrToStream(String base64Str)
  2. base64ToByte(String data)
  3. base64ToByteArray(String data)
  4. base64ToFile(String base64Code, String targetPath)