Re: [OT] storing images

2011-05-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/13/2011 11:14 AM, alexis wrote: > upon new data, what i only build new are the series, then i get the > object on the servletcontext and set the new data inside this object > (if exists, if not, the whole chart object is created) That's

Re: [OT] storing images

2011-05-13 Thread alexis
On May 13, 2011, at 11:47 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alexis, > > Marking off-topic because this has nothing whatsoever to do with Tomcat. > > On 5/11/2011 5:06 PM, alexis wrote: >> For real time purposes, im building images > > I get i

Re: [OT] storing images

2011-05-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, Marking off-topic because this has nothing whatsoever to do with Tomcat. On 5/11/2011 5:06 PM, alexis wrote: > For real time purposes, im building images I get it. > We'll going to images, what i store in servletcontext is NOT > practically

Re: storing images

2011-05-11 Thread alexis
Sorry guys ive been not so clear. here's the deal , ill explain the whole process trying to resume so nobody gets bored reading :) final images are 400x300px (sometimes png, sometimes jpg) containing pie charts, bar charts, etc. The webapp is constantly connected getting information from a pbx

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 12:37 PM, alexis wrote: > small images (never more than 35kB) in a LAN. :) Martin's comment was, as usual, off-topic and hot terribly helpful. Martin, use of the JAI doesn't have anything to do with bandwidth unless you think tha

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 10:52 AM, alexis wrote: > I understand, but i have top 12 images of 35kbytes, no more. Fair enough. > Encoding load is an issue yes, but the images are reflecting > callcenters call queues and some stuff related so the need to re

Re: storing images

2011-05-06 Thread alexis
vent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Subject: Re: storing images >> To: users@tomcat.apache.org >> From: alz...@gmail.com >> Date: Fri, 6 May 2011 14:52:50 + >>

RE: storing images

2011-05-06 Thread Martin Gainty
lement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date: Fri, 6 May 2011 14:5

Re: storing images

2011-05-06 Thread alexis
berry -Original Message- From: Christopher Schultz Date: Fri, 06 May 2011 09:48:45 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 8:19 PM, alexis wrote: > Im sto

RE: storing images

2011-05-06 Thread Joseph Morgan
destroying an image someone is using. -Original Message- From: alexis [mailto:alz...@gmail.com] Sent: Friday, May 06, 2011 8:38 AM To: Tomcat Users List Subject: Re: storing images Image is built using a jfreechart object, once created it's stored as attribute in servletcontext, at this

Re: storing images

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 8:19 PM, alexis wrote: > Im storing the images as servletcontext attribute. Uh... in memory? That's a bad idea IMO for two reasons: 1. Large memory requirements 2. Likely repeated encoding into a file format like JPEG, PNG, etc.

Re: storing images

2011-05-06 Thread alexis
berry -Original Message- From: sebb Date: Fri, 6 May 2011 14:05:14 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images If multiple threads try to create the image at the same time it is possible that one thread will see a partial file - or the file may

Re: storing images

2011-05-06 Thread sebb
If multiple threads try to create the image at the same time it is possible that one thread will see a partial file - or the file may be locked. If you are not doing this already, I suggest creating the file with a unique temporary name and then renaming it once complete. The rename may fail if an

Re: storing images

2011-05-06 Thread Thad Humphries
I'd store the image to java.io.tmpdir and retrieve it with a servlet. I doing this now with my Ajax application. On Thu, May 5, 2011 at 2:19 PM, alexis wrote: > Hello all, im facing an issue, ive been testing for a while different > approaches without success. > > I have a servlet that basically

Re: storing images

2011-05-06 Thread alexis
-Original Message- From: Mark Thomas Date: Fri, 06 May 2011 09:09:55 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images On 06/05/2011 01:19, alexis wrote: > What i did (im testing and profiling it) is. > > As the images are around 10/12 and each ima

Re: storing images

2011-05-06 Thread alexis
ssage- From: Mark Thomas Date: Fri, 06 May 2011 09:09:55 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images On 06/05/2011 01:19, alexis wrote: > What i did (im testing and profiling it) is. > > As the images are around 10/12 and each image has

Re: storing images

2011-05-06 Thread Mark Thomas
On 06/05/2011 01:19, alexis wrote: > What i did (im testing and profiling it) is. > > As the images are around 10/12 and each image has around 30 to 35k. > > Im storing the images as servletcontext attribute. > > So calling to the servlet with ?code=1 builds and stores image1 on servlet > conte

RE: storing images

2011-05-05 Thread Martin Gainty
nt obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date: Fri, 6 May 2011 01:32:40

Re: storing images

2011-05-05 Thread alexis
- From: Martin Gainty Date: Thu, 5 May 2011 21:26:12 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: RE: storing images achieved if you correspond the userid-imageid parameter with the acquired image identifier e.g. ?code=1.1 puts user1 image 1 on servlet and retur

RE: storing images

2011-05-05 Thread Martin Gainty
importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date:

Re: storing images

2011-05-05 Thread alexis
hu, 05 May 2011 20:00:57 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 2:19 PM, alexis wrote: > I have a servlet that basically does > > . creates an image > . store the i

Re: storing images

2011-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 2:19 PM, alexis wrote: > I have a servlet that basically does > > . creates an image > . store the image on disk > . returns an html tag pointing to the stored image. > > there's no way to return binary content (the image) from

Re: storing images

2011-05-05 Thread alexis
perfect, ill check this. Thanks for the answer. On May 5, 2011, at 5:42 PM, Leo Donahue - PLANDEVX wrote: >> -Original Message- >> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >> Subject: RE: storing images >> >>> From: alexis [mai

RE: storing images

2011-05-05 Thread Leo Donahue - PLANDEVX
>-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: storing images > >> From: alexis [mailto:alz...@gmail.com] >> Subject: storing images > > >You have a couple of options: > >1) Create a dummy webapp whos

RE: storing images

2011-05-05 Thread Caldarale, Charles R
> From: alexis [mailto:alz...@gmail.com] > Subject: storing images > So, i have to create the image on the servlet (done) , store > the image on the disk (done), and return the tab also > done. Thing is, where im able to store the image from the > servlet im not able to re

Re: storing images

2011-05-05 Thread David kerber
On 5/5/2011 2:19 PM, alexis wrote: Hello all, im facing an issue, ive been testing for a while different approaches without success. I have a servlet that basically does . creates an image . store the image on disk . returns an html tag pointing to the stored image. reason why the servlet do

storing images

2011-05-05 Thread alexis
Hello all, im facing an issue, ive been testing for a while different approaches without success. I have a servlet that basically does . creates an image . store the image on disk . returns an html tag pointing to the stored image. reason why the servlet doesnt returns the image directly using