I'd like to pass a binary data file from component to client, can somebody help me how to implement it?

Thanks.