views:

351

answers:

1

Hi! Is there some Java equivalent of Convert.FromBase64String which

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.

I have tried:

Will be grateful for any suggestions!

+1  A: 

In general, chances are good that if the standard Java libraries don't have something you need, the Apache Commons framework does. In this case, you want the decodeBase64 method from commons.codec.binary.Base64.

John Feminella
thanks, I have tried both decode and encode methods but still it's not unsigned 8bit data given in result...
Max Gontar
I don't think that's right. The output of decodeBase64 is `byte[]`.
John Feminella
Max Gontar