Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle ASP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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)%>">


end if
Set RS=nothing

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 10:11 AM.

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