title: Restore filename and extension from base64 encoding
body: <p>I need write server side part to post a forum reply. I receive a post request with reply text, and attachment which is a base64 encoded string. Is there a way to restore filename and extension from this base64 string, or I need to have them as additional params in request? Is it a right way to post attachment as as base64 string?</p>
  
  <p>EDIT</p>
  
  <p>It's a spring web service, I'm expecting Post request. For now I'm using x-www-form-urlencoded encoding and expect message and encoded file to be a part of form body. But encoding type can be changed if needed.
  On server side I just retrieve it as requestParams map, and extract encoded String from this map.</p>