An example of scanonweb use of image scanning control in JBoss __web

Source: Internet
Author: User
Tags http post jboss jboss server tomcat server

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.