摘要
提出一种基于HTTP协议和数据库的文件上传方法,给出相应的实现算法。该方法通过表单提交文件信息,从多域数据流析取文件内容,并以二进制方式存入数据库的BLOB字段,从而实现文件上传。该方法具有结构化信息和非结构化信息同步上传、长文本和带格式文本可以以文件形式上传到数据库、维护难度低、扩展和移植方便等特点。
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.
出处
《广西科学院学报》
2005年第3期186-188,共3页
Journal of Guangxi Academy of Sciences
基金
国家计委西部大学网络工程项目(计投资20012437)资助。