Re: file locations
Re: file locations
- Subject: Re: file locations
- From: Chuck Hill <email@hidden>
- Date: Fri, 12 Nov 2004 14:06:32 -0800
On Nov 12, 2004, at 1:55 PM, Wes James wrote:
I have a database of:
Photographer
Subject
Notes
Image
I ran the web assistant and made the image field a
D2WDisplayImageFromPath so that it would take the image data from the
data base, i.e. /slides/slide.jpg and show the picture after doing a
search in the db.
Is the image data (the binary image) in the database? Or just the path
to the image on the file system? How does the image get to where it
is?
Doesn't /slides/slide.jpg in the database mean get from the apache
server web root which is http://server/slides.jpg in a browser (This
is /default osx apache doc root/slides).
That is just a string. It means what you use it for. If you bind it
to the src binding of a WOImage, it will generate HTML like
<img src="/slides/slide.jpg">
If you use it for something else, it might do something else. Don't be
afraid to use View Source in the browser. What HTML is getting
generated?
Chuck
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden