text: I've heard people talking about "base 64 encoding" here and there. What is it used for??
  I am developing an application in C to send video log of running session. For that I am using client server architecture.
  Client
  Server
  PROBLEM :-
  Looking for some optimization technique for BMP files in base64 at client side before sending over to server.
  Thank you in advance.
  EDIT :
  Code uses openssl functions for encoding at client side and it is mandatory as normal string with some special characters are discarded and blocked by gSOAP which provides connectivity with C# services at server side.;}
  Looking for a test case in which either the Base64 encode decode may break with an UnsupportedEncodingException or the decoded String will not be same as original. Intention is to create a set of test cases.
  import java.io.UnsupportedEncodingException;import java.util.Base64;public class Encode { public static void main(String[] args) { System.out.println(" Hellow Encode" ); String[] test = {"+","+1"," !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_" ,"+name `~ name =="}; try { for(String mes : test) { System.out.print(mes); String s=Base64.getEncoder().encodeToString(mes.getBytes("utf-8")); System.out.print("\t"+s); byte[] decoButes=Base64.getDecoder().decode(s); String decoStr = new String(decoButes, "utf-8"); System.out.println(decoStr.equals(mes)); // If Falls Sucess } }catch(UnsupportedEncodingException e){ System.out.println("SUCESS"); // Wish if this is executed } }}
  I have base64 encoded data that was created with Perl, using
  MIME::Base64 with
  encode_base64($data).
  The result is:
  ahX/OxLY/BBR4Wy+n+a3Mg==
  When I decode this in Perl, I get
  j?;??Q?l???2. If I write that out to a file, it looks like this:
  jˇ;ÿ¸Q·læüÊ∑2
  However, when I try to use the same base64 encoded data and decode with python
  base64.b64decode(data), I get:b'j\x15\xff;\x12\xd8\xfc\x10Q\xe1l\xbe\x9f\xe6\xb72'`
  If I decoded it to
  latin1, the result is a bit closer:
  'j\x15ÿ;\x12Øü\x10Qál¾\x9fæ·2', but I need the exact same data.
  How can I get the exact same output from python? What am I missing?
  (The Perl
  $data itself was supposedly generated with urandom
  read(DEV,$data,16);. 2020.