B4J Question HTTP ERROR 500 java.lang.IllegalStateException: Form is larger than max length 200000

hzq200409

Member
Licensed User
I don't want to limit the size of the form, is there a solution? I need to receive data from the front-end device, which can only submit data to me in the form of a form. If not, maybe I'll have to find another language. But I don't want to do that because I have to start all over again. My version of B4J is 9.80.
 

hzq200409

Member
Licensed User
Dim jo As JavaObject = srvr jo.GetFieldJO("context").RunMethod("setMaxFormContentSize", Array(10000000)) 'Size is in bytes, this example is 10mb srvr.Start StartMessageLoop:
Dim jo As JavaObject = srvr
jo.GetFieldJO("context").RunMethod("setMaxFormContentSize", Array(10000000)) 'Size is in bytes, this example is 10mb
srvr.Start
StartMessageLoop
I think it's very effective:)
Hi!
check: https://www.b4x.com/android/forum/t...er-web-server-setting-snippets.72625/#content

this was for Jserver3 but i guess its the same for Jserver4
 
Upvote 0
Top