The WebSocket client doesn't support binary transfers. If the file is small then you can encode it as base64 string. However for larger files it is recommended to use a standard http request. Otherwise you will block the single WebSocket connection.
My images will be small enough to be encoded, but they can be many (at least five for each web socket, one web socket for each client, hoping that clients will be thousands ).