The following is an example of a script Upload application. The downloaded files in this article provide the files and code in the example. Release the compressed file to a path and configure a virtual path for your network server. You can test and start uploadform.html in the browser.
Call scripts
The following describes how to call the BuildUploadRequest method. First, call a full dictionary: UploadRequest. Then, call the BuilUploadRequest method and send it to the original binary data of the request in the independent variable.
ByteCount = Request. TotalBytes
RequestBin = Request. BinaryRead (byteCount)
Dim UploadRequest
Set UploadRequest = CreateObject ("Scripting. Dictionary ")
BuildUploadRequest RequestBin
Data is decomposed and stored in a dictionary object and restored using the Item () method. The item data can be stored in VBScript variables and can be used anywhere in the code. Data can be transmitted back to the client as a response, used in ASP code, written into a file, and stored in a database.
Retrieve data
The data of the UploadRequest object can be accessed using the Item ("key") function. Now let's take a look at this situation: you need to access an email-controlled value. You can do this:
This is a text class control, and the content is a string, which can be used like any other VBScript string.
You can use the same method to restore binary data:
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