Why is Base64 string different in C# and Android

view full story

http://stackoverflow.com – I have convert one image into base64 string and that output same with online website. But the same image when I convert it from Android is different. Can you please explain why C# and Android base64 strings are different for the same image. C#.NET Code string cImagePath = @"G:\bg-listing.png"; byte[] imagebyte = StreamFile(cImagePath); String result = System.Convert.ToBase64String(imagebyte); System.IO.StreamWriter outFile; try { outFile = new System.IO.StreamWriter(Application.StartupPath + "//image2base641.txt", false, (HowTos)