title: Is there a better way to create a Spring DTO to get a file or a folder containing files than encoding in base64 string?
body: <p>At the moment, the file's content is transferred in a JSON like this : </p>
  
  <pre><code>{ 
    "name" : "filename.txt",
    "path" : "src/info/filename.txt",
    "base64content" : "dGhpcyBpcyBhIGZpbGUgd2l0aCBjb250ZW50"
  }
  </code></pre>
  
  <p>I just want to know how you would structure the JSON (and possibly the DTO class object) ?</p>