The byteArray is a Java array object, so CF's arrayLen() function would not
work on it.  You'd need to use the array's length method like this:
response.setContentLength(byteArray.length());

Java's file class also has a length() method that returns the file size in
bytes.

I'm not a Java programmer, but it appears that the code you posted streams
the file to the browser.  If that functionality is not needed, you might
want to use Dave Watts' suggestion using symbolic links.

On Jan 21, 2008 4:51 PM, Dave Watts <[EMAIL PROTECTED]> wrote:

> > CFCONTENT was being used previously, but when a bunch of
> > users start downloading large files, the server starts crashing...
> > Most of the files range between 200-500 MB, some up to 1GB
> > and larger...
>
> I strongly suggest you consider my second suggestion, which was to take CF
> out of the file service process altogether. Generate a symbolic link
> within
> CF, and delete the link when it's no longer needed.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297040
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to