users@glassfish.java.net

RE: question on images and DB

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Thu, 17 Sep 2009 15:34:13 +0100

 

research:

 

why don't you just store the image in the server side and give the relative path of image in the <src > ex
<td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.
some big website (or image intensive ) store the images in different server then where there app is deployed.

 


From: gorgeous65_at_msn.com
To: users_at_glassfish.dev.java.net
Date: Thu, 17 Sep 2009 15:14:00 +0100
Subject: RE: question on images and DB



Hi,

Matter
 
I believe i might take your suggestion, even though images takes up more space.
I believe maintenance of the application would be easier. And syn data from the
DB which relates to the particular image would be easier.
 
i was reading this:
 
http://www.extremeexperts.com/sql/FAQ/StoreImages.aspx
 
Hi
 
Hassan
 
Just put them in the filesystem. Storing large binaries in a relational
db is a pointless complication. IMO.
 
How so I manage this.
 
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:
 
<td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.
<td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.

 
similar to the able.. But remember I am using displaytag. eg.:
 
<display:table name="test">
  <display:column property="id" title="ID" />
  <display:column property="name" />
  <display:column property="email" />
  <display:column property="status" />
  <display:column property="description" title="Comments"/>
<td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.

</display:table>
 
If I was storing in a DB, I would do something like this:
 
<display:table name="test">
  <display:column property="id" title="ID" />
  <display:column property="name" />
  <display:column property="email" />
  <display:column property="status" />
  <display:column property="description" title="Comments"/>
<display:column property="image"/>
 
"image" would be a field within the DB which stores the image.
 
Makes it easy to syn.
 
What you think?
 
eve
 
 
 
 
 

 
eve
 
> Date: Thu, 17 Sep 2009 06:28:14 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Re: question on images and DB
>
> Most DBs have a BLOB or CBLOB type that you can use for large binary object types. Since this is a GF forum and not an MSSQL forum you're better off reading the relevant documentation or tracking down an MSSQL support forum for more help on this.
>
> [b]<rant>[/b]Why do some people ask such random questions in this forum? Seriously weird.[b]</rant>[/b]
> [Message sent by forum member 'matterbury' (matterbury_at_abinitio.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=364417
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>





View your Twitter and Flickr updates from one place – Learn more! _________________________________________________________________ Get the best of MSN on your mobile http://clk.atdmt.com/UKM/go/147991039/direct/01/
--_c3a4d02f-7643-4fc6-9c5c-298dbc5af517_
Content-Type: text/html; charset="Windows-1252"
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'>
&nbsp;<BR>
research:<BR>
&nbsp;<BR>
<DIV class=pad5x10>why don't you just store the image in the server side and give the relative path of image in the &lt;src &gt; ex <BR>&lt;td width="9"&gt;&lt;img src="images/mainTab_Inactive_left.gif" &gt;&lt;/td&gt;.<BR>some big website (or image intensive ) store the images in different server then where there app is deployed. </DIV>
<BR>&nbsp;<BR>
<HR id=stopSpelling>
From: gorgeous65_at_msn.com<BR>To: users_at_glassfish.dev.java.net<BR>Date: Thu, 17 Sep 2009 15:14:00 +0100<BR>Subject: RE: question on images and DB<BR><BR>
<STYLE>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</STYLE>
Hi,<BR><BR>Matter<BR>&nbsp;<BR>I believe i might take your suggestion, even though images takes up more&nbsp;space.<BR>I believe maintenance of&nbsp;the application would be&nbsp;easier. And syn&nbsp;data from the&nbsp;<BR>DB which relates to the particular image would be&nbsp;easier.&nbsp; <BR>&nbsp;<BR>i was reading&nbsp;this:<BR>&nbsp;<BR><A href="http://www.extremeexperts.com/sql/FAQ/StoreImages.aspx">http://www.extremeexperts.com/sql/FAQ/StoreImages.aspx</A><BR>&nbsp;<BR>Hi<BR>&nbsp;<BR>Hassan<BR>&nbsp;<BR>Just put them in the filesystem. Storing large binaries in a relational<BR>db is a pointless complication. IMO.<BR>&nbsp;<BR>How so I&nbsp;manage this.<BR>&nbsp;<BR>If I have 0ver 200 items I have to syn an image on a filesystem-&nbsp;store<BR>the image in a folder and point each row of data I collect from the database<BR>with an image.&nbsp; How&nbsp; is&nbsp;that possible?<BR>&nbsp;<BR>To achive your suggestion I have&nbsp;to:<BR>&nbsp;<BR>&lt;td width="9"&gt;&lt;img src="images/mainTab_Inactive_left.gif" &gt;&lt;/td&gt;.<BR>&lt;td width="9"&gt;&lt;img src="images/mainTab_Inactive_left.gif" &gt;&lt;/td&gt;.<BR><BR>&nbsp;<BR>similar to the&nbsp;able.. But remember I am using displaytag. eg.:<BR>&nbsp;<BR>&lt;display:table name="test"&gt;<BR>&nbsp; &lt;display:column property="id" title="ID" /&gt;<BR>&nbsp; &lt;display:column property="name" /&gt;<BR>&nbsp; &lt;display:column property="email" /&gt;<BR>&nbsp; &lt;display:column property="status" /&gt;<BR>&nbsp; &lt;display:column property="description" title="Comments"/&gt;<BR>&lt;td width="9"&gt;&lt;img src="images/mainTab_Inactive_left.gif" &gt;&lt;/td&gt;.<BR><BR>&lt;/display:table&gt;<BR>&nbsp;<BR>If I was storing in a DB, I would do something like this:<BR>&nbsp;<BR>&lt;display:table name="test"&gt;<BR>&nbsp; &lt;display:column property="id" title="ID" /&gt;<BR>&nbsp; &lt;display:column property="name" /&gt;<BR>&nbsp; &lt;display:column property="email" /&gt;<BR>&nbsp; &lt;display:column property="status" /&gt;<BR>&nbsp; &lt;display:column property="description" title="Comments"/&gt;<BR>&lt;display:column property="image"/&gt;<BR>&nbsp;<BR>"image" would be a field within the DB which stores the image.<BR>&nbsp;<BR>Makes it easy to syn.<BR>&nbsp;<BR>What you think?<BR>&nbsp;<BR>eve<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR><BR>&nbsp;<BR>eve<BR>&nbsp;<BR>&gt; Date: Thu, 17 Sep 2009 06:28:14 -0700<BR>&gt; From: glassfish@javadesktop.org<BR>&gt; To: users@glassfish.dev.java.net<BR>&gt; Subject: Re: question on images and DB<BR>&gt; <BR>&gt; Most DBs have a BLOB or CBLOB type that you can use for large binary object types. Since this is a GF forum and not an MSSQL forum you're better off reading the relevant documentation or tracking down an MSSQL support forum for more help on this.<BR>&gt; <BR>&gt; [b]&lt;rant&gt;[/b]Why do some people ask such random questions in this forum? Seriously weird.[b]&lt;/rant&gt;[/b]<BR>&gt; [Message sent by forum member 'matterbury' (matterbury@abinitio.com)]<BR>&gt; <BR>&gt; http://forums.java.net/jive/thread.jspa?messageID=364417<BR>&gt; <BR>&gt; ---------------------------------------------------------------------<BR>&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; <BR><BR><BR><BR>
<HR>
View your Twitter and Flickr updates from one place – <A href="http://clk.atdmt.com/UKM/go/137984870/direct/01/">Learn more!</A> <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>
--_c3a4d02f-7643-4fc6-9c5c-298dbc5af517_--