The easiest way to send into the database without component images Synchronize Database Database Date: 2001-7-17 Word Count: 4798
I. Introduction
First of all, there is no attention to the image and the text of the text will cause such a big attention. The last post (ID = 435906) After posted, many people believe that they don't understand. Or still don't be implemented. I will use a completely simple technique. Complete component-free text and upload all procedures for the database. I hope to help all netizens who have questions about this.
2: Preparation
According to the practice, I will tell you in my test environment first. System: WIN98SE PWS ASP programming environment: Visual InterDev 6.0 Database: Access2000 (because netizens ask the most of the Access2000 problem.) Built a library: Access2000, first build a Test.mdb database. There are four fields. ID | text1 | text2 | IMG Auto Number Text Text OLE Object 'If it is SQL Server, select (Image)
Three: Are you ready, Go !!!
3-1. We know that the image and text are two different types of files (binary, streaming text) and if we want to submit it, (File format submit), we can't use the original Methods Request.form must have all submission information with Equest.TotalBytes. But at this time, the two formats of formats are mixed together. My last post has told everyone to separate these materials with a binary approach. But very troublesome, you have to use many binary functions, so many netizens will ask me if there is a simpler method, good. I can tell everyone, there is! And to ensure that the following methods ensure that you will learn. (This method is very different, but the great man said the white cat, black cat. It is a good cat!)
Upload.asp (specific code is as follows)
<% @ Language = vbscript%>