Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle ASP
|
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 2nd, 2010, 10:09 AM
Registered User
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Problem in Image Retrieving from Oracle in ASP

I am trying to retrieve picture of Long Raw Data Type stored in Oracle,
in ASP page by using following code but garbage characters are printing
rather then picture. Please help

<!--#include file="Includes/connection.asp"-->
<%
Response.Expires = 0
Response.Buffer = TRUE
Response.ContentType = "image/JPEG"
Dim picstr

sql="select picture from Pic where id='4445662' "

If RS.state=1 then RS.close
set RS = db.execute(sql)
If not RS.Eof then

picstr = RS("picture")
%>

<img src="<%Response.BinaryWrite (picstr)%>">

<%

Response.End()
end if
RS.close
Set RS=nothing
%>

Last edited by Aziz; October 2nd, 2010 at 11:06 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Image uploading and retrieving biswa ASP.NET 2.0 Professional 2 September 25th, 2009 03:02 AM
insert/retrive image from oracle 9i in asp.net 2.0 Pramod2005 .NET Framework 1.x 0 July 4th, 2007 02:55 AM
Retrieving clob oracle with php roxusername PHP Databases 0 October 30th, 2006 02:02 PM
Sending & Retrieving Picture From Oracle To VB tutul128 Pro VB Databases 1 October 31st, 2004 06:41 AM
Problem retrieving resultset from asp ... mussitsch Classic ASP Databases 2 June 17th, 2003 07:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.