Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases 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 19th, 2006, 05:30 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Metalore
Default Displaying Images From Database

Hi All,

Hopefully someone may know a solution or workaround to my problem...

I'm saving an image to my database in sql server 2005 express. I want to be able to display the image on a page, and I am using the response.writebinary function to do this. It's working fine however I also have other information (text) on the page (same page as the image is being written to) which is not being displayed. When I comment out the the response.writebinary line the other information is displayed.

Anyone know of a way to display both image and text on the page please??

Thanks in advance,

Tony

 
Old November 1st, 2006, 11:45 AM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Metalore
Default

Found a workaround to my problem, all working well now :)

Am outputting the image to a random page that the user does not see, and using that page as the img src for displaying my image alongside the text on the other page.

This seems to be the only way to do it, and required a lot of changes to my code to get it working.

Anyone have any issues then please post / mail etc and I should be able to give some advice.

Regards,

Tony






Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing images in Database and displaying them Manoj Bisht ASP.NET 1.x and 2.0 Application Design 4 February 6th, 2010 03:06 AM
displaying images chandan121 JSP Basics 0 May 1st, 2008 09:59 PM
displaying images embedded in database jia ASP.NET 1.0 and 1.1 Basics 1 July 5th, 2007 07:06 AM
Displaying images inbox Classic ASP XML 2 May 4th, 2005 03:08 AM
Displaying images from database in Crystal Report gp_mk Crystal Reports 7 September 7th, 2004 11:54 PM





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