Project

General

Profile

Signal with big string does not trigger the connected method

Added by Samuel Quevauvillers over 3 years ago

Topo :
I want to get back from the client a dynamic picture (openlayer map) as text ("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...")

How I did:
I use a signal and a slot to retrieve the data from the image as text with some JS with the slot.setJavaScript(...)
Then the dispatch function(std::string) does his work with the received string.

Problem :
It works with a small string or integer and other types.
It does not work with a big string. The signal is emitted (a POST request with the whole data is sent to the server), but the dispatch function is not reached.

Does someone has a workaround or is there a better way to do this ?
Thanks