The leading provider of version control solution and TWAIN SDK

What is ActionPage used for when using the HTTP Post method?

When you use the 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);
%>

References:

For more information about the HTTPUploadThroughPost method, please refer to:
HTTPUploadThroughPost

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




Article Details

Last Updated
9th o September, 2008

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (0 votes)

No users have voted.

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

  1. Comment #1 (Posted by Gerri )
    What an awesome way to expialn this-now I know everything!

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue