Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
Dev Center
Table of contents

Error Troubleshooting

HTTP process error

Symptom

When attempting to upload images using any of the HTTPUploadThroughPost*** methods the upload fails and you receive this error.

Cause

  1. The write permission is not granted to the specified directory on the web server.
  2. The action page is incorrect or returns something from the web server.
  3. The port specified for uploading is incorrect.
  4. The size of the images you are trying to upload is larger than the maximum allowed size set by the server.

Solution

  1. Make sure the users who are uploading have permission to write images to the specified directory on the web server. (For example, give “Write” permission to the Authenticated Users.)
  2. Check the response string returned from the HTTP server to determine the cause of the HTTP process error. You can get this string by using the HTTPPostResponseString property.
  3. Set the port to the correct one using HTTPPort. We recommend you get the Port and Server values this way:

     var strHTTPServer = location.hostname;
     DWObject.HTTPPort = location.port == "" ? 80 : location.port;
    
    • If you have set IfSSL to true, you must set a secure port for the HTTPPort property. For example,
     DWObject.IfSSL = true;
     DWObject.HTTPPort = 443;
    

    For example: If the URL for the scan page is “http://localhost:3253/….”, you should set the port to 3253.

  4. Check the server-side configuration

    • Please reset the maximum transferable data size. If you are using ASP.NET , you can change the value in the following line in the Web.Config file.
     <httpRuntime maxRequestLength="1000000"/> // In kilobytes
    

    This line may also be required

     <requestLimits maxAllowedContentLength="300000000" /> // In bytes
    

    The following is an example config file

     <?xml version="1.0" encoding="UTF-8"?>
     <configuration>
         <system.web>
             <httpRuntime executionTimeout="3000"  maxRequestLength="102400"/>
             <compilation debug="true" />
         </system.web>
         <system.webServer>
             <security>
                 <requestFiltering>
                     <requestLimits maxAllowedContentLength="300000000" />
                 </requestFiltering>
             </security>
         </system.webServer>
     </configuration>
    

    If you are using PHP , you can change the value in the following line in the php.ini file:

     upload_max_filesize = 2M
    

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest Version
    • Version 17.2.1
    • Version 17.1.1
    • Version 17.0
    • Version 16.2
    • Version 16.1.1
    Change +
    © 2003–2022 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support