Data | database
Image processing is still an area of confusion and trouble for many people. So far, the best way to work with images in an ASP page is to save the images to the file system rather than the database.
However, there is a situation where the image needs to be accessed from the database, so there is a simple way to access the image, assuming that the image data is a B L O b field in SQL Server. Using Microsoft's access to store images has an additional problem, the header information of the image is stored in the O L E object field. The solution to access is not intended to be studied here.
Of course, you can also use stored procedures to return images to speed up execution.
This example returns only a single image and, of course, a recordset that contains more than one image.
Another way to use an image is to use the IMG tag and data binding, and the IMG tag bound field is src attribute src. Of course, this property uses a URL, so you cannot directly bind an image that is stored in a recordset. In fact, there is no way to directly use an image in a recordset and put it on a Web page.
As mentioned at the beginning of this chapter, there is no pure ASP programmer in the world. This focuses on the different techniques for uploading data to clients. Some of these technologies use client-side scripting and RDS, while others use pure ASP code to generate data.