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'>
<BR>
research:<BR>
<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 <src > ex <BR><td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.<BR>some big website (or image intensive ) store the images in different server then where there app is deployed. </DIV>
<BR> <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> <BR>I believe i might take your suggestion, even though images takes up more space.<BR>I believe maintenance of the application would be easier. And syn data from the <BR>DB which relates to the particular image would be easier. <BR> <BR>i was reading this:<BR> <BR><A href="
http://www.extremeexperts.com/sql/FAQ/StoreImages.aspx">
http://www.extremeexperts.com/sql/FAQ/StoreImages.aspx</A><BR> <BR>Hi<BR> <BR>Hassan<BR> <BR>Just put them in the filesystem. Storing large binaries in a relational<BR>db is a pointless complication. IMO.<BR> <BR>How so I manage this.<BR> <BR>If I have 0ver 200 items I have to syn an image on a filesystem- store<BR>the image in a folder and point each row of data I collect from the database<BR>with an image. How is that possible?<BR> <BR>To achive your suggestion I have to:<BR> <BR><td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.<BR><td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.<BR><BR> <BR>similar to the able.. But remember I am using displaytag. eg.:<BR> <BR><display:table name="test"><BR> <display:column property="id" title="ID" /><BR> <display:column property="name" /><BR> <display:column property="email" /><BR> <display:column property="status" /><BR> <display:column property="description" title="Comments"/><BR><td width="9"><img src="images/mainTab_Inactive_left.gif" ></td>.<BR><BR></display:table><BR> <BR>If I was storing in a DB, I would do something like this:<BR> <BR><display:table name="test"><BR> <display:column property="id" title="ID" /><BR> <display:column property="name" /><BR> <display:column property="email" /><BR> <display:column property="status" /><BR> <display:column property="description" title="Comments"/><BR><display:column property="image"/><BR> <BR>"image" would be a field within the DB which stores the image.<BR> <BR>Makes it easy to syn.<BR> <BR>What you think?<BR> <BR>eve<BR> <BR> <BR> <BR> <BR> <BR><BR> <BR>eve<BR> <BR>> Date: Thu, 17 Sep 2009 06:28:14 -0700<BR>> From: glassfish@javadesktop.org<BR>> To: users@glassfish.dev.java.net<BR>> Subject: Re: question on images and DB<BR>> <BR>> 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>> <BR>> [b]<rant>[/b]Why do some people ask such random questions in this forum? Seriously weird.[b]</rant>[/b]<BR>> [Message sent by forum member 'matterbury' (matterbury@abinitio.com)]<BR>> <BR>>
http://forums.java.net/jive/thread.jspa?messageID=364417<BR>> <BR>> ---------------------------------------------------------------------<BR>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> <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_--