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