public static ByteBuffer parseBase64StringAsByteBuffer(String in){
  return ByteBuffer.wrap(Base64.decodeBase64(in.getBytes()));
}

public static ByteBuffer parseBase64StringAsByteBuffer ( String in ) { return ByteBuffer . wrap ( Base64 . decodeBase64 ( in . getBytes ( ) ) ) ; }
converts a base64 encoded string to a bytebuffer .
