Thursday, 09 March 2023
  1 Replies
  323 Visits

I have to transmit binary messages and files from server to client.

The files protocol allows to send text messages in addition to files, but not binary messages.
When trying to use write(guid, data) and data is a stream, the compiler complains with error "E2362 Impossible to access to protected TsgcWSProtocol_Server_Base.WriteData"

I tried with / without broker with files and sgc protocols.

The workaround is to send text messages serialized from json, but is there a way to send binary messages betwwen server and cleint using files protocol ?
What is the right way when we have at the same time one or more "specialized" protocols and general messages ?