title: Is it possible to serialize an object into a plain text string and send it as a string then convert it back?
body: <p>As the title says. I'm sending a message, from my server, into a proxy which is outside of my control which then sends it onto my application. All I can do is send and receive strings. Is it possible to serialize to a plain string and send in this way without an input/output stream as you would normally have?</p>
  
  <p>TIA </p>
  
  <p>A little more info:</p>
  
  <pre><code>public class myClass implements java.io.Serializable {
  int h = "ccc";
  int i = "bbbb";
  String myString = "aaaa";
  }
  </code></pre>
  
  <p>I have this class, for example. Now I want to serialize it and send it as a string inside my HTTPpost and send to the proxy, can't do anything about this stage:</p>
  
  <pre><code>    HttpPost post = new HttpPost("http://www.myURL.com/send.php?msg="+msg);
  </code></pre>
  
  <p>Then receive the msg as a string on the other side and convert it back. </p>
  
  <p>Is that easily done without to many other library? </p>