The simplest way to synchronize images and text without components to the database

Source: Internet
Author: User
I. Preface first, I did not expect that the upload of images and text would attract such attention. After the previous post (Id435906) was posted, many people wrote that they could not understand it. Or still cannot be implemented. I am simply using a simple method. Complete the process of uploading the text and images without components to the database. Hope to help all netizens who have doubts about this. Ii. Preparation

I. Preface first, I did not expect that the upload of images and text would attract such attention. After the previous post (Id = 435906) was posted, many people wrote that they could not understand it. Or is still not implemented. I am simply using a simple method. Complete the process of uploading the text and images without components to the database. I hope to help all users who have questions. Ii. Preparation

I. Preface

First, I did not expect that the upload of images and text would attract such attention. After the previous post (Id = 435906) was posted, many people wrote that they could not understand it. Or
Yes. I am simply using a simple method. Complete the process of uploading the text and images without components to the database. Hope to help all those who have doubts
Ask the netizen.

Ii. Preparations

By convention, I will first tell you about my testing environment.
System: Win98se + pws + asp
Programming Environment: Visual Interdev 6.0
Database: access2000 (the most frequently asked questions are Access2000 .)
Create a database: In access2000, first create a database named Test. mdb. There are four fields.
Id | text1 | text2 | img
Automatically numbered text OLE object 'if it is SQL server, select (image)

Three: Are you ready, Go !!!

3-1. Create an upload form:
We know that images and text are two different formats of files (binary, streaming text), and if you want to submit the same form (submitted in file format ),
We cannot use the original method request. form to obtain all the submitted materials by using equest. TotalBytes. But the two formats of Files
Mixing is difficult. My previous post has told everyone to use binary methods to separate these materials. However, it is very troublesome to use many binary functions.
So many netizens asked me if I had a simpler method. I can tell you, yes! In addition, make sure that the following methods can be used in one school. (This method
The method is very alternative, but the great man said that the white cat, black cat. Good cats can access the Internet !)

Upload. asp (the specific code is as follows)

<% @ Language = vbscript %>



File Upload

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.