Dynamic Web TWAIN: What is an action page?

When you use Dynamic Web TWAIN's HTTP Post method to upload the images in buffer, you need an action page on the server side to receive the data string.

The field name of the uploaded image is "RemoteFile". The action page receives the data string from "RemoteFile" and then saves it to the file system or database on the server side. Action Page Sample (C#):

 <%@ Page Language="c#" AutoEventWireup="false" Debug="True"%>

HttpFileCollection files = HttpContext.Current.Request.Files;
HttpPostedFile uploadfile  = files["RemoteFile"];
uploadfile.SaveAs(System.Web.HttpContext.Current.Request.MapPath(".") + "/" + uploadfile.FileName);

To download samples of Dynamic Web TWAIN (DWT), please go to: Sample Download  

Is this page helpful?

Leave a Reply

Your email address will not be published.