title: Already Encoded String as DataHandler
body: <p>So after looking at <a href="https://stackoverflow.com/questions/15221418/return-string-in-datahandler">a similar SO Post about String and DataHandlers</a>, I have run into a problem in terms of efficiency.  I have a String coming into my web service that is already encoded.  I have the need to convert this String into a <code>DataHandler</code> to put into a POJO and send off to another service.  When I use <code>new ByteArrayDataSource(String, type)</code> it is encoding the already encoded String (a 2nd time).</p>
  
  <p>To work around this I am decoding the input, and then passing the created <code>byte[]</code> into <code>new ByteArrayDataSource(byte[], type)</code>.  I am worried about the performance hit this will create when having to decode and re-encode images, when I already have an encoded version being passed in.  Is there a way to create a <code>DataHandler</code> (or <code>DataSource</code>) from an already encoded String without needing the "MIME type", so I don't have to decode to encode?  </p>
  
  <p>I have tried using <code>FileDataSource(String)</code> but this was not working, with the same input used in a working <code>ByteArrayDataSource(byte[], String)</code> with decoded Strings.  I also tried it passing in a blank string for the type using <code>ByteArrayDataSource(String, type)</code>.</p>