Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 March 31st, 2010, 10:49 AM
Authorized User
 
Join Date: Sep 2009
Posts: 35
Thanks: 6
Thanked 1 Time in 1 Post
Default Uploading pictures directly to the DB

Hey Imad,

I had a quick question I was hoping you could help me with.

I am setting up another site after reading your book (which is great btw) and I have a management section where I am wanting to input records into the DB, now I have the DB set up and I've put in the functionality like learned in the book to input the data with the detailsviews and what not, but the fields for the 8 images I have for the table won't display (and it makes sense since I will be inputting images here that need to be uploaded).

Could you tell me how I could set this up? This would be something under the management section of the site, more for the admin not the end-user. I will have the page password protected using other methods learned in the book I was just wondering how within adding records to the actual table I could also upload the images at the same time.

Thanks
 
Old March 31st, 2010, 07:38 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

I'm not clear which part of the book this refers to. And do you mean the database has the locations of the image files, or do you truly mean the actual image files themselves?
 
Old April 1st, 2010, 06:19 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Does this help?

http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=395

It's not directly applicable to the sample site,but may give you some ideas on how to do it....

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old April 1st, 2010, 10:21 AM
Authorized User
 
Join Date: Sep 2009
Posts: 35
Thanks: 6
Thanked 1 Time in 1 Post
Default

kiwibrit,

basically I just want the in a managment section where a user can add, say in this case resorts, to his DB for display on the front end user page I want them to be able to upload actual images from their PCs to the DB, to the fields I have specified within the SQL Server tables.

Imar,

I will check that out and see if it helps, thanks!
 
Old April 1st, 2010, 06:35 PM
Authorized User
 
Join Date: Jun 2009
Posts: 70
Thanks: 18
Thanked 1 Time in 1 Post
Default

Hmm. I have tended to keep image paths rather than images in database - not that I have done much, and not in asp.net. But I glanced at this article and I think you may find it interesting.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading an image and storing its name in a DB SKE Classic ASP Databases 1 March 14th, 2005 09:13 AM
problem with uploading blob data to MySQL DB kyle_shea PHP Databases 1 March 8th, 2005 06:15 PM
.NET C# wrox book on uploading files to a DB? jen6677 General .NET 2 November 9th, 2004 08:18 AM
I need help with uploading file to mysql DB superdos PHP Databases 2 June 27th, 2004 01:50 AM
Use Objects or just insert data directly to DB? pedrobernardo VB.NET 2002/2003 Basics 3 December 10th, 2003 05:07 PM





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