users@glassfish.java.net

Re: question on images and DB

From: Hassan Schroeder <hassan.schroeder_at_gmail.com>
Date: Thu, 17 Sep 2009 08:54:21 -0700

On Thu, Sep 17, 2009 at 7:14 AM, Eve Pokua <gorgeous65_at_msn.com> wrote:

> If I have 0ver 200 items I have to syn an image on a filesystem- store
> the image in a folder and point each row of data I collect from the database
> with an image.  How  is that possible?
>
> To achive your suggestion I have to:

store the name/path/url of the images somewhere, yes. That's the
way most sites do it. Though if you follow a naming convention, you
may not even need that.

> If I was storing in a DB, I would do something like this:
>
> <display:table name="test">

> <display:column property="image"/>
>
> "image" would be a field within the DB which stores the image.

? I don't think you understand how images on a web site are served;
they aren't embedded in a page like text content, they're referenced
in an IMG tag and fetched separately by the browser/client. You'll
still have to generate the IMG tag.

> Makes it easy to syn.

I have no idea what you mean by that.

-- 
Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com
twitter: @hassan