|
|
|
|
|
| | |
|
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: ASP-SQL:Get a picture from SQL to ASP |
From: |
Goran |
Date: |
2/14/2000 10:29:51 AM |
IP: |
193.10.40.128 |
First, you should set the content type HTTP header to the type of image you want do download, in your asp page.
Ex: Response.ContentType = "image/jpeg"
or: Response.ContentType = "image/gif"
then just do a binarywrite of the BLOB field that contains the image:
Response.BinaryWrite(rs.Fields("blob_field").Value)
You could also use Software Artisans FileUp to download blobs, but then you need to buy it.
But they (SA) say itīs better than the binarywrite method, if youīre concerned about your applications performance...but I donīt know about that :)
//Goran |
Previous Message
Follow Up - Re: ASP-SQL:Get a picture from SQL to ASP - david parker 8/9/2000 8:32:49 AM
|
|
|
|
|
|
|
|
|
|
|
|