Today in JBoss using the Scanonweb image scanning control to solve the scanner to read the image problem, found that in the scanning of low pixel image data without any problems, scanning high-resolution data upload failure after the analysis found the cause of the problem.
One. Scan Image Precision Settings
In the adjustment of scanning accuracy to 100x100, can be submitted to the JSP page, but when the image resolution is increased, the JSP page in the common input item data are not accepted, estimated and submitted to the server side of the amount of data is related to the size.
Two. JBoss Server Configuration parameter modification
The JBoss server uses the Tomcat server by default, and the Tomcat server defaults to an acceptable HTTP POST data size of 2M, which is described in detail in the official JBoss documentation, as follows:
The maximum size in bytes of the POST which is handled by the container FORM URL parameter. The limit can is disabled by setting this attribute to a value less than or equal to 0. If not specified, the This attribute is set to 2097152 (2 megabytes).
Now that we've found the source of the problem, it's a good solution, open the Server.xml file in the Jboss-web.deployer directory of JBoss 4.2.3, and increase the maxpostsize configuration parameter values for the connector configuration parameters . If you accept a large enough HTTP POST data size, set the value 0 directly.
Detailed JBoss configuration parameter description can be seen here: http://docs.jboss.org/jbossweb/3.0.x/config/http.html
Three. The relationship between online scan control and server-side technology
One of the problems in the online image scanning is to save the image file of the scan result to the client local bar. Not much meaning, customers directly using the scanner software to scan themselves, why do you have to develop a set of support for online scanning image software. So we need to embed inside the browser to deal with image scanning and editing functions, scanonweb control is just suitable to solve these problems, is basically the best online image scanning and editing processing control, use it to develop online scanning program is really suitable.