You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem in short: i have a textbox in which i am entering 3 million characters long string value, and that string is not able to pass from html to controller.
problem in detail: i am making a blogging website, in which i am using QuillJs as text editor. So whatever i enter in QuillJs editor are the contents of editor, and these contents are represented by "delta" object which contains a json representation of the contents of the editor. so if i add an image in the editor, quill will create img tag and the src of that tag will be the base64 text which is converted by QuillJs.
so now i am taking QuillJS's delta object to save it to the database so that i can display it as it was edited.
i get the data of QuillJs by this: document.getElementById("datajso").value= JSON.stringify(quill.getContents());
here datajso is a String field which is mapped to "data" which is String object in my entity "CreateContent".
so when "datajso" contains data more than 2MB, it does not passes the data to controller, and the value it passes is NULL.
less than 2MB works fine, it passes less than 2MB data to controller and i can save it in database.
i am attaching my complete project in a zip file below;
how you can check the problem i am facing:
run the program: go to http://localhost:8080/creators/creating
you will see a text editor, in that editor insert an image of 1MB and click on "save delta" button to populate the textbox which is bind to the "data" of "CreateContent" entity, it will take 10 secs to populate the textbox as the text is large. after populating textbox, click on "submit" to save the large text to database.
it will be saved in database mysql.
now if you insert an image more than 1.8MB and click on "save delta" the text box will be populated, however after clicking on "submit" the data will not be saved in database.
after debugging i found out that the fields are getting null when i am sending data more than 2MB to controller.
for that i have researched on google and found that i need to enter this in main class
both of the above are not working for me, i have been stuck on this problem for 1 and half week.
i am attaching my complete project in a zip file below;
"removed zip file"
The controller class, entity, and html you will need to check in this project is:
"ConfigurationClass" "CreatorsHomeController.java" "CreateContent.java" "CreateContentRepository.java" "creating-mode.html" "application.properties" other classes you simply can ignore.
please help me.
The text was updated successfully, but these errors were encountered:
Problem in short: i have a textbox in which i am entering 3 million characters long string value, and that string is not able to pass from html to controller.
problem in detail: i am making a blogging website, in which i am using QuillJs as text editor. So whatever i enter in QuillJs editor are the contents of editor, and these contents are represented by "delta" object which contains a json representation of the contents of the editor. so if i add an image in the editor, quill will create img tag and the src of that tag will be the base64 text which is converted by QuillJs.
so now i am taking QuillJS's delta object to save it to the database so that i can display it as it was edited.
i get the data of QuillJs by this:
document.getElementById("datajso").value= JSON.stringify(quill.getContents());
here
datajso
is a String field which is mapped to "data" which is String object in my entity "CreateContent".so when "datajso" contains data more than 2MB, it does not passes the data to controller, and the value it passes is NULL.
less than 2MB works fine, it passes less than 2MB data to controller and i can save it in database.
i am attaching my complete project in a zip file below;
how you can check the problem i am facing:
run the program: go to http://localhost:8080/creators/creating
you will see a text editor, in that editor insert an image of 1MB and click on "save delta" button to populate the textbox which is bind to the "data" of "CreateContent" entity, it will take 10 secs to populate the textbox as the text is large. after populating textbox, click on "submit" to save the large text to database.
it will be saved in database mysql.
now if you insert an image more than 1.8MB and click on "save delta" the text box will be populated, however after clicking on "submit" the data will not be saved in database.
after debugging i found out that the fields are getting null when i am sending data more than 2MB to controller.
for that i have researched on google and found that i need to enter this in main class
and tried entering this in application.properties file
both of the above are not working for me, i have been stuck on this problem for 1 and half week.
i am attaching my complete project in a zip file below;
"removed zip file"
The controller class, entity, and html you will need to check in this project is:
"ConfigurationClass" "CreatorsHomeController.java" "CreateContent.java" "CreateContentRepository.java" "creating-mode.html" "application.properties" other classes you simply can ignore.
please help me.
The text was updated successfully, but these errors were encountered: