Random-ness-ish-ness:
You could potentially toss in the Apache FileUpload project. I was
talking with someone about this over the weekend.
It looks like you could just stick the needed code in a CFML page,
CFML-ized from Java, and post the upload form to that CFML page and
let it handle the upl
Well, the issue I was having with cffileupload is now considered a bug (83447)
and while we're waiting for our platinum plan (if going that route will even
work), I'm checking out jFileUpload. What it does is split larger files into
chunks of a size designated by an attribute. In my case, I'm s
accepting a
binary file like this? File type could be .doc, .pdf etc
~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
>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
@Dave - I know this is an old post, but I'm curious an
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 programme
> 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
F-Talk"
Sent: Monday, January 21, 2008 4:32 PM
Subject: Re: Read large binary file, MX7?
> Dave is right --- when in CF use CF!
>
> Here's a code snippet fron June 19,2003 entry is Chris Cantrell's blog
> (he's
> an Adobe expert)
> http://weblogs.macromedia
o what you need!
- Original Message -
From: "Sarah Geren" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Monday, January 21, 2008 2:38 PM
Subject: Re: Read large binary file, MX7?
> thanks,
> I was actually originally trying to use this piece of code that I found
> usin
x27;s nothing left to
read.
}
catch(any excpt) {}
outstream.flush(); // send any remaining bytes
response.reset(); // reset the feed to the browser
outstream.close(); // close the stream to flash
instream.close(); // close the file stream
}
- Original Message -
From: &quo
> I have an application which uses CFFILE to read a binary file
> into a variable, and that variable is used to write out the
> video to the brower so someone can download it...
Why are you doing this? You can use CFCONTENT to return a file directly.
Alternatively (and generally ev
/file-manipulation-scripts/
On Jan 21, 2008 2:27 PM, Sarah Geren <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have an application which uses CFFILE to read a binary file into a
> variable, and that variable is used to write out the video to the brower so
> someone can download
<[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Monday, January 21, 2008 1:27 PM
Subject: Read large binary file, MX7?
> Hello,
>
> I have an application which uses CFFILE to read a binary file into a
> variable, and that variable is used to write out the video to the brower
Hello,
I have an application which uses CFFILE to read a binary file into a variable,
and that variable is used to write out the video to the brower so someone can
download it...
This code is working great, until the file sizes become too large. It seems to
stop working (and returns a null
Awesome, that works great!
I *ALMOST* got it working with less java...
#str#
Unfortunately, this method doesn't quite work, as applying the charset
messes a FEW things up (if I look at the response in Fiddler, they're
*ALMOST* identical).
But your way works, so I'm pretty happy 'bo
This method works for me. I gleaned it from a blog post by Christian
Cantrell a while back.
context = getPageContext();
context.setFlushOutput(false);
response = context.getResponse().getResponse();
out = response.getOutputStream();
response.setContentType("image/png");
respo
> If I have the contents of a binary file in memory, is it
> necessary to dump those contents to a file in order to send
> it to the browser, or can I do something like this:
>
>
>value="attachment; filename=#myImage.name#"> type="#myImage.type#&q
#myImage.binaryData#
I believe you can do this, but you have to be very diligent to remove all
extraneous white space, as it will be included in the "binary" data and throw
it off. Make liberal use of tags and make sure there is not extra
space between the tag and the output data.
If I have the contents of a binary file in memory, is it necessary to
dump those contents to a file in order to send it to the browser, or can
I do something like this:
#myImage.binaryData#
Rick
~|
Introducing the Fusion
>
> Simple. The old and the new app need to be able to run in parallel until
we
> completely retire the old app, which should be ~90 days after release. I
> rebuilt an app that took 2 people 7 months to build; I did it alone and in
> two months (not by choice, but because I had sharp, heavy objec
- Original Message -
From: "Stephen Moretti" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 10:03 AM
Subject: Re: Upload binary file and insert into Oracle
>
> Ok. Now I've read it and not being funny,
Pete,
> Not to be rude, but...please reread sentence 2 of paragraph 1 of my
original
> post. Believe me, the goal IS to get the files onto the file system, but
> it's not going to happen with this release of the app that I'm building.
>
Opps... Apologies Don't know how I missed that one se
oretti" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:22 AM
Subject: Re: Upload binary file and insert into Oracle
> I have to ask, why bother?
>
> You've already got the file onto your app server's filing syste
Monday, February 03, 2003 1:59 PM
Subject: Upload binary file and insert into Oracle
> I've never inserted files into a database before, so I just want to ask
some questions. Also, please don't respond with "Just store the files on
the server's file system and not in the
MAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:01 AM
Subject: Re: Upload binary file and insert into Oracle
> Pete Ruckelshaus wrote:
>
> >I've never inserted files into a database before, so I just want to ask
some questions. Also, please don't respond with "Just
pp and this is the
>way it works.
>
>I have an interface where a user will select and upload a binary file; this file will
>then be stored in an Oracle 8.0.4 database. All of the stuff on the database side of
>things are set up since it's a working app now (written in PL/SQL, be
have an interface where a user will select and upload a binary file; this file will
then be stored in an Oracle 8.0.4 database. All of the stuff on the database side of
things are set up since it's a working app now (written in PL/SQL, being rewritten by
me in CF5).
Here is what I assume the
I think there is a filter for 'tidy' to clean up the MS Word HTML-hell to
standards-compliant (XHTML?).
__
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http:/
text.
Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com
-Original Message-
From: Winn, Ron [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 10:52 AM
To: CF-Talk
Subject: Microsoft Binary File Format
Does anyone know where to ge
Does anyone know where to get the Microsoft binary file format converter for
Word? I sent an email to [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> and in typical Microsoft fashion, they are
slow. I am converting pieces of word documents for storage into a SQL
database. The text
erting into SQL via CF... Binary file or
Image File
As most of you know SQL has a datatype of Binary that can hold an actual
binary file and
has a datatype of image that can hold an image file. I sent this
question
yesterday but go
no response figured I would try once more. Obviously I know how to
As most of you know SQL has a datatype of Binary that can hold an actual
binary file and
has a datatype of image that can hold an image file. I sent this question
yesterday but go
no response figured I would try once more. Obviously I know how to insert
DATA via
CF into SQL. But w/ in that
Hi there,
The quick:
I'm trying to write out binary files, i.e. just a whole bunch of
numbers, what's the best way of doing this.
The slightly longer:
I'm trying to write out a binary file, that can contains the value 0,
and it doesn't seem possible (in any simple, fa
32 matches
Mail list logo