Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 October 30th, 2003, 10:00 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Uploading images to a database

Hi,

Can anyone help me on how to:
1. Uploading Images to a MS-SQL Database ( C# )
2. Retrieving Images from MS-SQL Database ( C# ) and displaying on a datagrid.

Thanks.


  #2 (permalink)  
Old October 30th, 2003, 10:06 PM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

vivi,
This is a good tutorial on uploading images to MSSQL but this is not a very efficient wat to deal with images, better to store them on file.
Take a look all the same
http://www.developerfusion.com/show/3905/1/

======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
  #3 (permalink)  
Old October 30th, 2003, 10:08 PM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

By the way this would be better posted in a C# forum rather than ASP.


======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
  #4 (permalink)  
Old October 30th, 2003, 10:14 PM
Registered User
 
Join Date: Oct 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

rodmcleay,
thanks.

Yeah, i did follow the instruction on
http://www.developerfusion.com/show/3905/1/

But I stumble on it. Here is the error message that I got:
-------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 68: imgStream = UploadFile.PostedFile.InputStream;
-----------------------------------------------------------------

I can't figure what I miss. Can anyone help?

Thanks.



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in uploading images poojagupta Classic ASP Basics 0 November 6th, 2007 04:35 AM
Uploading & retriving Images From Database aaaboye Classic ASP Basics 1 February 20th, 2007 04:03 PM
Retrieving and Uploading Images in Database vijay_83 ASP.NET 2.0 Professional 1 October 4th, 2006 03:25 PM
BLOB - Uploading images into a database jcivitello PHP Databases 1 March 10th, 2006 09:02 PM
uploading Images.. Pallav Servlets 4 November 1st, 2004 05:34 AM





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