Send file Server to Client

I want to transfer an image file from server to client using RPC at once.
(If I use Custom Socket, can I use it with RPC?)

Image file are over 64MB in size.
Server : Listen Server.

RPC is made to trigger functions not big data transfers, you could try to send to send array of uint8 with file data or even FColor if you dealing with raw bitmap and see how it works, but don’t be suppriced if there issues like locking up server to perform that action.

You can use it sockets with RPC in sense that server would inform client, “o hey connect to me via socket i got something for ya” and client would reponce “ok done”. direct connections are common practice for file transfers in many protocols when HTTP is not avable, usually to avoid server all together and transfer files between clients.

Speaking of which best option would be to put file on HTTP server and make client download, is most common solution.