mg>(hopefully) brief response

> Date: Mon, 15 Jun 2009 12:22:28 -0400
> From: ch...@christopherschultz.net
> To: users@tomcat.apache.org
> Subject: Re: chunked encoding
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Martin,
> 
> On 6/13/2009 8:57 PM, Martin Gainty wrote:
> > how do you accomodate multi-mb size files?
> 
> You do one of the following:
> 
> 1. Use some means to determine the file size a priori (like using a
>    static file, but in a database, so you can ask the db how big it is)

MG>lob_loc = ((OracleResultSet)rset).getBFILE (1);  long length = 
lob_loc.length();
MG>http://download-west.oracle.com/docs/cd/B13789_01/appdev.101/b10796/adlob_bf.htm#1014966
> 
> 2. Buffer the file on the disk instead of in-memory
MG>DiskFileUpload upload = new DiskFileUpload()
MG>http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/xdocs/overview.xml?revision=560660
> 
> 3. Just move the file to the disk instead of serving it out of a
>    database
MG>what most companies do (i usually do this myself) then insert reference of 
URL to DB
MG>but what if the server goes down?..uh oh..
> 
> 4. Suck it up and not deliver the Content-Length header, disabling
>    CDN caching :(
MG>very interesting..like to hear more about this..
> 
> - -chris
MG>--martin

> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAko2dUQACgkQ9CaO5/Lv0PDhHQCaA8aLXWDdTqEj3m7a6rULytRm
> bj0An2uYNaWWFGwQ7qugpW8PWPBdfaTe
> =+7Iq
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 

_________________________________________________________________
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Reply via email to