mardi 8 août 2017

Is there a better way to create a Spring DTO to get a file or a folder containing files than encoding in base64 string?

At the moment, the file's content is transferred in a JSON like this :

{ 
  "name" : "filename.txt",
  "path" : "src/info/filename.txt",
  "base64content" : "dGhpcyBpcyBhIGZpbGUgd2l0aCBjb250ZW50"
}

I just want to know how you would structure the JSON (and possibly the DTO class object) ?

Aucun commentaire:

Enregistrer un commentaire