Since the blob can be large, I'd like to POST it as binary. However, I haven't found any way to do it and receive an InputStream on the backing bean. RemoteCommand only accepts string parameters, and the JSF WebSocket component is basically unidirectional, from server to client.
In future versions, the WebSocket integration could be made bidirectional, with a new annotation for incoming messages on the backing bean. Annotated methods could receive a Reader or an InputStream as parameter. Also, the RemoteCommand component could also support binary parameters. I'll open an issue for that proposals.
For now, can anybody think of a workaround for my usecase?
Guillermo González de Agüero