摘要
在开发基于网络的数据库信息系统当中,经常会遇到要求向数据库信息系统当中存入或取出图片及其相关内容的问题,利用ASP中request对象的binaryread方法和recordset对象的appendchunk方法,以及response对象的binarywrite方法实现图片及其相关内容到SQLServer2000数据库的存取,并给出部分程序代码,这些技巧在开发基于ASP、ASP.NET的网上数据库应用中具有很高的实用价值。
In the development of web-based database information system,the uploading and retrieval of pictures and related content is a frequent occurrence.Using binaryread method of object request and appendchunk method of object recordset in ASP,and binarywrite method of object response,this paper presents an algorithm to deposit and acquire pictures and related content from SQL Server database,and part of program codes are constructed.These kinds of techniques are very useful in developing database application system based on ASP,ASP.NET in Internet.
出处
《微型电脑应用》
2009年第9期52-54,69,共3页
Microcomputer Applications
基金
云南省昆明市科学技术局基金资助项目(编号:04G07014)
关键词
ASP编程
数据流
图片
数据库
存取技术
ASP programming
Data stream
Picture
SQL server
Access technique