B4J Question [SOLVED] Error uploading image to mySQL database

RAFA BRAVO

Active Member
Licensed User
Longtime User
The following message appears in the B4J log when uploading an image of the mobile phone:
B4X:
(PacketTooBigException) com.mysql.jdbc.PacketTooBigException: Packet for query is too large (11781554 > 1048576). You can change this value on the server by setting the max_allowed_packet' variable.

where can I find and modify the variable max_allowed_packet' that appears in the log? thanks.

I use the JRDC2 example.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The error happens on the server.

You need to modify the MySQL server configuration.
 
Upvote 0
Top