samedi 5 décembre 2015

Send images from RoR API to EmberJS

I am currently researching on what is the best way to send an images that is saved in a ruby on rails api to an emberjs front end. We are building a social network, and we would like this to be as light as possible. I have seen-thought the following alternatives:

  • Send file froms rails.
  • Send file in binary data in a json response.
  • Make the file visible in a url and pass the url.

What would be the best choice regarding speed and light load on the server?




Aucun commentaire:

Enregistrer un commentaire