解决方案 »

  1.   

               byte[] bytes = Convert.FromBase64String(Str);
                Str = System.Text.ASCIIEncoding.ASCII.GetString(bytes);
                byte[] newbytes = System.Text.ASCIIEncoding.ASCII.GetBytes(Str);            result += System.Text.ASCIIEncoding.ASCII.GetString(bytes);           result = Convert.ToBase64String(byteR);android:byte[] byte=Base64.decode(str, Base64.DEFAULT);
    str=new String(bytes, "ASCII");
    byte[] newbytes=str.getBytes("ASCII");
    result+=new String(bytes, "ASCII");
    result=Base64.encode(byteR, Base64.DEFAULT);
    Java 6以上可以byte[] bytes=DatatypeConverter.parseBase64Binary(str);
    str=new String(bytes, "ASCII");
    byte[] newbytes=str.getBytes("ASCII");
    result+=new String(bytes, "ASCII");
    result=DatatypeConverter.printBase64Binary(byteR);