I decode some text using Base64. I tried three different libraries (general Base64, Java.misc.as well as java.mail) in Java and all of them give the same result for the following text, which is wrong.
However, when I use Ruby to decode the line below, I get a different output. I am getting the correct result using Ruby. Ruby Code print Base64.decode64('<Below String>')String
RkxWAQEAAAAJAAAAABIAAK4AAAAAAAAAAgAKb25NZXRhRGF0YQgAAAAHAAV3aWR0aABAdAAAAAAA
AAAGaGVpZ2h0AEB0AAAAAAAAAAlmcmFtZXJhdGUAQBAAAAAAAAAADHZpZGVvY29kZWNpZABACAAA
AAAAAAAMY2FuU2Vla1RvRW5kAQEAD21ldGFkYXRhY3JlYXRvcgIAKVNpbXBsZUZMVldyaXRlci5h
cyB2MC44IHplcm9wb2ludG5pbmUuY29tAAAJ
Exit should start with FLV. I am not sure what I am missing and why the output is different from Java.
source
share