Working with images in a database

Source: Internet
Author: User
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.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.