Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best method to provide a file dynamically?



This is my spin on things


I would like to provide a dynamic link to a file in a WORepetition. The archives of this and the Omni lists have provided me with the following ideas for how to solve the problem:

1. Get the file from the database
Con: Slower as more connections/work is needed, and can't steam file straight to the browser, also can't go to the file and modify it directly
Pro: Easy to implement and if you ever have to move your app to a different machine you only need to copy the DB across, not worrying about change folder paths etc, securely stored the file


2. Get the file from the file system via a data object
This is mine and I believe most people preferred option
Con: Slightly more work to implement
Pro: files can be streamed to browser and can be stored in a secure location



3. Directly link to the file using a hyperlink
Con: Files must be stored in a web accessible folder so not very secure
Pro: Easy to implement and fast file downloads and perhaps you want all your files accessible from the web


What are the pros and cons of the various choices?

David

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ email@hidden


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Best method to provide a file dynamically? (From: David Holt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.