NetTalk Central

Author Topic: Is there a way to GET binary files from a rest server, not using encoding?  (Read 10 times)

jlavera

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Hi, all.

We have some API Rest servers where the speed had become critical, so if we can reduce the traffic it would be great. We used to upload/download (POST, GET) files using base64 encoding inside json packages. It works great, but it adds 30% to 40% of overhead.
We replaced all the POST with Multipart/form-data, the API rest server recognizes it perfectly, and we receive those files way faster than before.
However, I don't find the way to do the same for GET operations; for what I see, the methods force to use either json or xml (the "default return format" is mandatory and either json or xml).
Is there a way to transmit a Multipart/form-data response? Or any other way to transmit binaries, for example BSON or even CBOR?

Cheers,
Jorge Lavera