摘要: |
提出一种基于HTTP协议和数据库的文件上传方法,给出相应的实现算法。该方法通过表单提交文件信息,从多域数据流析取文件内容,并以二进制方式存入数据库的BLOB字段,从而实现文件上传。该方法具有结构化信息和非结构化信息同步上传、长文本和带格式文本可以以文件形式上传到数据库、维护难度低、扩展和移植方便等特点。 |
关键词: 文件 数据库 HTTP协议 上传 多域数据流 析取 |
DOI: |
投稿时间:2004-12-21 |
基金项目:国家计委西部大学网络工程项目(计投资20012437)资助。 |
|
Method of Uploading Files Based on Database and HTTP Protocol |
Huang Jingwen
|
(Information & Network Center, Guangxi University, Nanning, Guangxi, 530004, China) |
Abstract: |
A method of uploading files based on database and HTTP protocol is developed. In this solution, the file information is sent in the browser side via filling of HTML form, and extracted from multipart stream in the server side, and stored as binary stream into the BLOB field of database.In this method, the structured information and unstructured information can be submitted synchronously,and large text and formatted text can be uploaded to database as a file.The data maintenance and transplant between different system platforms are easy. |
Key words: files database HTTP protocol uploading multipart stream extract |