Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 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 April 3rd, 2007, 02:27 PM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Photo Album Questions

Hi, im very new to asp.net and enjoying working through the book, some very nice work!

Anyway, i have a question regarding the photo album in chapter 7. Simply put, is there any way to alter the code so that images can be added automatically when a new image is saved in the "uploads" folder, without the users input?

I ask as i have an IP network camera storing images to a folder whenever it detects motion, i would like to use this photo album to display them on my website without having to manually add each one.

If this is not possible, any suggestions of alternative photo albums would be much appreciated.

Many thanks,

Ben

 
Old April 4th, 2007, 12:12 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

The problem with this is not the PhotoAlbum, but the way the web works. It's pretty easy to write some code that loops through a folder, detects images and inserts them into the database. However, having this code fired at a regular interval from an ASP.NET web application can be more problematic.

You may want to Google for the terms:

scheduled task asp.net

There are a couple of ways to accomplish this including scheduling a task to fire an application, using Windows Services (with a FileSystemWatcher), do it "on demand" whenever a request is made and so on. With pure ASP.NET, I don't think you'll be able to create anything that looks like a real-time file watcher.

You can take a look at this to get you started with the Services: http://msdn.microsoft.com/msdnmag/is...lingASPNETCode

HtH,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.




Similar Threads
Thread Thread Starter Forum Replies Last Post
paging in photo album xperre BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 April 2nd, 2007 03:32 PM
Error posting photo to photo album abel714 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 10 February 5th, 2007 03:07 AM
Wrox Photo Album Help rsearing BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 6 September 27th, 2006 02:30 PM
Photo Album Menus Tremmorkeep BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 August 15th, 2006 01:49 PM





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