Well, I was able to... understand anything.
"Just create a standard handler that reads the file from the stream and send the file with HttpJob. After the file is sent you can send a notification to the websocket."
Standard handler on device? I have created a simple class on device, in wich the link in:
j.PostBytes(link &...
should point to...? a server handle class like FileHelper?
Should then this class save somewhere the file available to the websocket handler when it receives notification from the client?
"After the file is sent you can send a notification to the websocket."
After the file is sent it is sent but not received with certainty.
________________________________________________________
Certainly I find all of this confusing because I do not know the backstory, the POST & GET, how they work in B4A, web-not web B4J server, which objects possess a session, etc.
In short, I am too ignorant and I can not clarify my ideas by taking examples from various places-example projects.
_______________________________________________________
I emphasize that my questions are not addressed only to Erel, which is certainly very busy.
It's all too complicated for me, I'm afraid.
Distinguish what are the tasks of the "Player" websocket handler and what those of a normal code module, which I think might be the centerpiece, the manager of the whole "game server", is already hard.
what I want to achieve in this
small part is:
the user can choose an image for his profile and send it to the server (where it will end then, I'm not sure. Surely the central database and then in a class Player or the Player websocket handler, mah!)
In the opposite direction, the server will send to the user/client a series of images relating to other players (friends players and those in the game room).
I would need to a "scheme" like: names and type of modules and name and type of routines.
Something like:
--- Client sends an image ---
clsSendImage - httpjob with PostBytes to X on server
x (type) routine ReceiveImageFile does...
and so on.
Not a thing with many details.
Sorry but at this time I am more confused than usual.
I thank you even if you had only read all this whining.