I would like to know if we can send as a parameter a file attached to the backend through the gateway.
Yes, you can, but not as a parameter, the gateway can handle MIME multi-part messages. Just send the request message with attachment to gateway same as you send it to the any normal web server.
But transfer large file is not a good use of gateway.
Retrieving data ...