users@glassfish.java.net

RE: question on images and DB

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Fri, 18 Sep 2009 15:24:24 +0100

Hassan,

 

Thank you for your email.

 

> ? 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.
>


 

No I have no idea. Thanks why I am researching and asking for help.

 

I am using display tag and non of their examples on their website shows

any data being displayed from the database with pictures.

 

eve
 
> Date: Thu, 17 Sep 2009 08:54:21 -0700
> From: hassan.schroeder_at_gmail.com
> To: users_at_glassfish.dev.java.net
> Subject: Re: question on images and DB
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
                                                _________________________________________________________________ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/
--_ea30e8bc-4f6f-4c6e-ab5d-0175c1c6b0d2_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hassan,<BR>
&nbsp;<BR>
Thank you for&nbsp;your email.<BR>
&nbsp;<BR>
&gt; ? I don't think you understand how images on a web site are served;<BR>&gt; they aren't embedded in a page like text content, they're referenced<BR>&gt; in an IMG tag and fetched separately by the browser/client. You'll<BR>&gt; still have to generate the IMG tag.<BR>&gt;&nbsp;<BR><BR>
&nbsp;<BR>
No I have no idea. Thanks why I am researching and asking&nbsp;for help.<BR>
&nbsp;<BR>
I am using display tag and non of their examples on their website shows<BR>
any data&nbsp;being displayed from the database&nbsp;with pictures.<BR>
&nbsp;<BR>
eve<BR>&nbsp;<BR>&gt; Date: Thu, 17 Sep 2009 08:54:21 -0700<BR>&gt; From: hassan.schroeder_at_gmail.com<BR>&gt; To: users_at_glassfish.dev.java.net<BR>&gt; Subject: Re: question on images and DB<BR>&gt; <BR>&gt; On Thu, Sep 17, 2009 at 7:14 AM, Eve Pokua &lt;gorgeous65_at_msn.com&gt; wrote:<BR>&gt; <BR>&gt; &gt; If I have 0ver 200 items I have to syn an image on a filesystem-&nbsp;store<BR>&gt; &gt; the image in a folder and point each row of data I collect from the database<BR>&gt; &gt; with an image.&nbsp; How&nbsp; is&nbsp;that possible?<BR>&gt; &gt;<BR>&gt; &gt; To achive your suggestion I have&nbsp;to:<BR>&gt; <BR>&gt; store the name/path/url of the images somewhere, yes. That's the<BR>&gt; way most sites do it. Though if you follow a naming convention, you<BR>&gt; may not even need that.<BR>&gt; <BR>&gt; &gt; If I was storing in a DB, I would do something like this:<BR>&gt; &gt;<BR>&gt; &gt; &lt;display:table name="test"&gt;<BR>&gt; <BR>&gt; &gt; &lt;display:column property="image"/&gt;<BR>&gt; &gt;<BR>&gt; &gt; "image" would be a field within the DB which stores the image.<BR>&gt; <BR>&gt; ? I don't think you understand how images on a web site are served;<BR>&gt; they aren't embedded in a page like text content, they're referenced<BR>&gt; in an IMG tag and fetched separately by the browser/client. You'll<BR>&gt; still have to generate the IMG tag.<BR>&gt; <BR>&gt; &gt; Makes it easy to syn.<BR>&gt; <BR>&gt; I have no idea what you mean by that.<BR>&gt; <BR>&gt; -- <BR>&gt; Hassan Schroeder ------------------------ hassan.schroeder_at_gmail.com<BR>&gt; twitter: @hassan<BR>&gt; <BR>&gt; ---------------------------------------------------------------------<BR>&gt; To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net<BR>&gt; For additional commands, e-mail: users-help_at_glassfish.dev.java.net<BR>&gt; <BR> <br /><hr />
Upgrade to Internet Explorer 8 Optimised for MSN. <a href='http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U' target='_new'>Download Now</a></body>
</html>
--_ea30e8bc-4f6f-4c6e-ab5d-0175c1c6b0d2_--