I have converted image byte array to base64encoded string in Java using
Base64.encodeBase64URLSafeString(baos.toByteArray());
and I am able to decode it back to byte array ans save the image in file which is same as original file . But when I pass the base64 encoded string to the ASP .NET web service , and try to decode using
Convert.FromBase64String(base64String);
I am unable to reproduce the same image . Please suggest me the correct way to decode - an encoded base64 image in java- in C#.