I need a way to know if a string is Base64 encoded... any idea ?
thanks
I need a way to know if a string is Base64 encoded... any idea ?
thanks
IMHO you need to try to decode it, and if it fails - it is not encoded.
There are many Base64 decoders for Java, here are some:
sun.misc.BASE64Decoder