ColdFusion, AJAX and web...
Someone recently asked me to expand upon my previous post about generating CSV files, and in particular, to focus on the Java method. In my previous post, I concluded that using the Java BufferedWriter class is a much more scalable and stable solution than using the typical concatenate-and-write-once-done method.
There really isn't much to using Java to write to a file. Essentially, there are three steps, 1) create the Java class instances, 2) get the data and write to the buffer, and 3) close the output stream.
Firstly, we instantiate the FileWriter class (which writes to the file) and then the BufferedWriter class, passing the FileWriter instance as a parameter.
Then, we create the column headers, and loop over the data (query in this case) and write it to the buffer. The Java class manages the size of the buffer internally, so when threshold is reached, it will write to the file.
Lastly, we need to close the output stream, otherwise the file will not be released.
This is a great post. Once you start getting into large file sizes(50MB+), using buffered readers and writters are a necessity in ColdFusion MX. JRun instances are usually set anywhere from 100MB to 512MB. ColdFusion MX Standalone can be set to around 1500MB. You can max out your JRun instance with ColdFusion by tring to use CFFILE on large files.
That was a very informative blog. But what maybe I am worried about is I can't relate to it. I updated surely of the latest in the tech world. But not as much as you are people.
Well, you really did a great job on epounding your topic. At least it was easy to understand. Thus, it was eplained in a very simple and effective way.
av女優
我av我情人趣味用品我愛爾蘭我情人趣味愛蜜莉我情人趣味用品我情趣我用品
情趣用品我情趣用品我aio交友愛情館我一葉情貼圖片區我一葉晴貼影片區
By acekard, at 9/08/2011 04:38:00 pm
r4ds
r4i
r4i gold
r4i sdhc 1.4.2
acekard 2i 3ds
ttds
m3 real
supercard 3ds
cyclods iEvolution
ps3 move gun
ps3 Wireless controller
r4i 3ds
ds card
acekard 3ds
dstt 3ds
dstwo
nintendo r4
r4 nintendo ds
r4i card
By sabreena, at 3/05/2012 06:05:00 pm
Nice post.and it is Amazing post as well . :)
----------------
Online casino
By alina, at 3/12/2012 04:17:00 pm
A like it very much. Thanks
-----------
Online slots