webapp : jetty how to use setMaxTextMessageSize
Hi, Jetty has limited text message size, and it can be set by setMaxTextMessageSize .Link : http://download.eclipse.org/jetty/stable-9/apidocs/org/eclipse/jetty/websocket/api/WebSocketPolicy.html#setMaxTextMessageSize(int) How can I set this with JavaObject or jReflection lib ? Thanks, bz
www.b4x.com
With regards to the above thread to SET the max session text size (websocket) for an upload, I have a question regarding the SAFE use of other MySQL text type definitions:
TEXT: max size is 65,535 characters... (default)
MEDIUMTEXT: max size is 16,777,215 characters..
LONGTEXT: max size is 4,294,967,295 characters...
Question:
Has anyone had any problem using MEDIUMTEXT type? (before I commit and find I made a big mistake)...
The reason why I ask...
I am creating an ABMaterial page for creating emails to send.
The editor I use allows the insertion of "images" embedded along with the standard text (as HTML).
While testing, SetMaxTextMessage(500000) - (websocket) works without error - BUT the server rejects it (does not save) due to size limit with TEXT field definition.
With MEDIUMTEXT - works fine.... - entire text size is less than SetMaxTextMessage(500000) and 16,777,215 characters for the field...
Of course, I wouldn't want anyone to store (or allow) GIG's of image data into a table, but rather let them set a template logo and (one or two) small sized images embedded in the email content to send to their selected client list.
Thanks