Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional 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
  #1 (permalink)  
Old May 27th, 2006, 02:19 PM
Authorized User
 
Join Date: May 2006
Location: Hyderabad, Andhra Pradesh, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default retrieving img from sql and showing it in imgctrl

Hello ,

           I stored an image in database and now i want to retrieve the image from the database.I am getting the binary data of the image but how can i show the image from database in my image control.Please tell me how this can be accomplished and if possible provide me the sample code.

  #2 (permalink)  
Old May 31st, 2006, 02:14 AM
Registered User
 
Join Date: Aug 2003
Location: Sydney, NSW, Australia.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not the answer your looking for but.

Save the URL of the image in your table.

Then bind image URL to Url of image in table.

Paul

  #3 (permalink)  
Old June 13th, 2006, 02:25 PM
Authorized User
 
Join Date: Apr 2005
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We use AspLib BinaryImage for this purpose

  #4 (permalink)  
Old June 13th, 2006, 04:08 PM
Authorized User
 
Join Date: May 2006
Location: Hyderabad, Andhra Pradesh, India.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hiii,

       I didn't get you.can i have a detailed information.I know retrieving image image from database to a page using response.binarywrite.but how to get it to an image control.Please help me regarding this.If possible provide sample code.

                         Thanks in advance,


Regards,
Harsha

  #5 (permalink)  
Old July 20th, 2006, 10:31 AM
Authorized User
 
Join Date: Apr 2005
Location: , , .
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try BinaryImage from AspLib component library (http://asplib.net)

  #6 (permalink)  
Old July 25th, 2006, 05:39 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think this might help you a bit

http://www.codeproject.com/aspnet/ImageBinaryStream.asp

Charul Shukla
  #7 (permalink)  
Old August 1st, 2006, 03:12 AM
Registered User
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi how can i save an image in sql server 2000 database

Vikas Singh
Bangalore
  #8 (permalink)  
Old August 16th, 2006, 05:51 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Look at the 'personal website starter template' in VS2005.
The photomanager.cs/photos.aspx.cs(in admin folder) and handler.ashx should give you some pointers.




Similar Threads
Thread Thread Starter Forum Replies Last Post
sending and retrieving image to/from sql mosi C# 2005 1 May 10th, 2008 07:51 AM
Retrieving SQL statement from a FormView jcrabtreesla ASP.NET 2.0 Professional 0 August 11th, 2006 10:05 AM
Retrieving img file from app server using database arun_sunmic Pro JSP 0 January 16th, 2006 06:24 AM
Showing img. in shortcut bar. derek Dreamweaver (all versions) 1 May 29th, 2004 04:32 AM
How to open Word imbeded in SQL Srv img field? slava123 ADO.NET 0 November 12th, 2003 05:09 PM





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