RE: cffile upload large files again!

2005-12-07 Thread FROEHLING, ROBERT \(AIT\)
Sorry about that.  I guess I should have paid more attention to your
original post.  :)

-Original Message-
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 3:27 PM
To: CF-Talk
Subject: Re: cffile upload large files again!


Robert,
That one specifically talks about reading in text files already residing
on
the server. I bet that could easily be modified for reading in uploaded
files. Thanks for the link.

George

On 12/7/05, FROEHLING, ROBERT (AIT) <[EMAIL PROTECTED]> wrote:
>
> George,
>
> Take a look at this technique by John Bartlett.
>
> http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96
>
> Robert
>
>




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226490
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread George Abraham
Robert,
That one specifically talks about reading in text files already residing on
the server. I bet that could easily be modified for reading in uploaded
files. Thanks for the link.

George

On 12/7/05, FROEHLING, ROBERT (AIT) <[EMAIL PROTECTED]> wrote:
>
> George,
>
> Take a look at this technique by John Bartlett.
>
> http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96
>
> Robert
>
>


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226487
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cffile upload large files again!

2005-12-07 Thread FROEHLING, ROBERT \(AIT\)
George,

Take a look at this technique by John Bartlett.

http://johnwbartlett.com/cf_tipsntricks/index.cfm?TopicID=96

Robert

-Original Message-
From: George Abraham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 1:32 PM
To: CF-Talk
Subject: Re: cffile upload large files again!


Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
about, though? I searched using various terms, but nothing turned up.

I do understand what you say about streaming the file while uploading.
Can
this be done using the java.io.InputStream class?

George

On 12/7/05, Dave Carabetta <[EMAIL PROTECTED]> wrote:
>
> I would absolutely look into alternative solutions to cffile in this
> case. Remember, the cffile tag reads the *entire* file into memory (if
> it can) and only then does the "action" request. I'll bet money that
> your "crap out" was an OutOfMemory error at the Java level -- you were
> just looking at the wrong log file, which is why you didn't see it. If
> you're serious about allowing uploads of the sizes you're talking
> about, then streaming the file will be much more efficient. There are
> some UDFs at cflib.org to help you out with this. Also, if you're
> using MX 7, there is a new memory throttle on the "Settings" page
> called "Maximum size of post data" to help prevent against DoS
> attacks. Make sure that you up the default 10MB setting to the size of
> the largest file you anticipate to accept, or you'll hit that road
> block as well.
>
> Regards,
> Dave.
>




~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226477
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread Dave Carabetta
On 12/7/05, George Abraham <[EMAIL PROTECTED]> wrote:
> Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
> about, though? I searched using various terms, but nothing turned up.
>
> I do understand what you say about streaming the file while uploading. Can
> this be done using the java.io.InputStream class?
>

Yikes, you're right. I can't seem to find them either (though I swear
I saw at least one). I do believe you'd need to using the InputStream
class to get this done, though I'm not a strong enough Java developer
to really help you out there. Hopefully somebody else can chime in
more definitively?

Regards,
Dave.

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226474
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread George Abraham
Thanks Dave, I don't see any UDFs on cflib that deal with what you talk
about, though? I searched using various terms, but nothing turned up.

I do understand what you say about streaming the file while uploading. Can
this be done using the java.io.InputStream class?

George

On 12/7/05, Dave Carabetta <[EMAIL PROTECTED]> wrote:
>
> I would absolutely look into alternative solutions to cffile in this
> case. Remember, the cffile tag reads the *entire* file into memory (if
> it can) and only then does the "action" request. I'll bet money that
> your "crap out" was an OutOfMemory error at the Java level -- you were
> just looking at the wrong log file, which is why you didn't see it. If
> you're serious about allowing uploads of the sizes you're talking
> about, then streaming the file will be much more efficient. There are
> some UDFs at cflib.org to help you out with this. Also, if you're
> using MX 7, there is a new memory throttle on the "Settings" page
> called "Maximum size of post data" to help prevent against DoS
> attacks. Make sure that you up the default 10MB setting to the size of
> the largest file you anticipate to accept, or you'll hit that road
> block as well.
>
> Regards,
> Dave.
>


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226468
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cffile upload large files again!

2005-12-07 Thread Dave Carabetta
On 12/7/05, George Abraham <[EMAIL PROTECTED]> wrote:
> All,
> For uploading multiple files to the server, we use a Java applet which works
> quite well. Now, the sizes of the files could vary. People might upload 10
> files that are 2MB each or 100 files that total about 200MB together.
> Sometime people could even upload about a gig of files if they so liked and
> wanted to wait that long, I expect. Anyway, when I last used cffile for
> upload for large files (using CF 4.5, if you please), there were all sorts
> of crappy issues you had to deal with. Are there still issues with using
> cffile for large files? I recently tested out the app with about 175MB of
> files with the largest file being about 76 MB abd the CF server crapped out
> on me. Looked up the application log and there wasn't one line of log in
> there that said anything significant happened.  Am I better off using the
> FileReader class in Java? Or any other option?
>

I would absolutely look into alternative solutions to cffile in this
case. Remember, the cffile tag reads the *entire* file into memory (if
it can) and only then does the "action" request. I'll bet money that
your "crap out" was an OutOfMemory error at the Java level -- you were
just looking at the wrong log file, which is why you didn't see it. If
you're serious about allowing uploads of the sizes you're talking
about, then streaming the file will be much more efficient. There are
some UDFs at cflib.org to help you out with this. Also, if you're
using MX 7, there is a new memory throttle on the "Settings" page
called "Maximum size of post data" to help prevent against DoS
attacks. Make sure that you up the default 10MB setting to the size of
the largest file you anticipate to accept, or you'll hit that road
block as well.

Regards,
Dave.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226463
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54