Displaying Images that Reside in a Database

By Bill Graziano on 13 November 2001 | Tags: Queries


A commonly asked question on ASPMessageboard.com is along the lines of: "How do I display an image that resides in a database via an ASP page?" There are many applications where image information needs to be saved - for example, in an employee database you may wish to include a picture of each employee, or in an eCommerce site you may wish to include a picture of each available item. Essentially two approaches exist: store URLs to the images in the database, or store the actual binary representation of the image in the database. Each approach requires a different solution for displaying the images via an ASP page. Read this FAQ to learn more!

Link: Displaying Images that Reside in a Database


Related Articles

Using Dynamic SQL in Stored Procedures (7 March 2011)

Joining to the Next Sequential Row (2 April 2008)

Writing Outer Joins in T-SQL (11 February 2008)

Aggregating Correlated Sub-Queries (23 October 2007)

How to Use GROUP BY with Distinct Aggregates and Derived tables (31 July 2007)

How to Use GROUP BY in SQL Server (30 July 2007)

Returning Complex Data from User-Defined Functions with CROSS APPLY (11 June 2007)

Returning a week number for any given date and starting fiscal month (2 May 2007)

Other Recent Forum Posts

AlwaysOn AG + Replication maintenance - two scenarios to get the job done (10h)

What happens in a dual LEFT OUTER join when the second join is NULL in both tables? (12h)

How to set a variable from a table with comma? (1d)

SSRS Expression IIF Zero then ... Got #Error (2d)

Understanding 2 Left Joins in same query (3d)

Use a C# SQLReader to input an SQL hierarchyid (3d)

Translate into easier query/more understandable (3d)

Aggregation view with Min and Max (4d)

- Advertisement -