Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Java & Coldfusion, CFX's & binary data.....


  • From: colin@xxxxxxxxx (Colin Findlay)
  • Subject: [Advanced-java] Java & Coldfusion, CFX's & binary data.....
  • Date: Wed, 16 Jan 2002 17:04:05 -0000

Hello, 

Here's a nice easy question - I have a Java CFX that creates a binary 
file on the fly (lets pretend it's a jpeg).

What I need to do is output the file into a ColdFusion variable. Much 
like the way cffile works - ie <cffile action="readBinary" 
file="bob.jpg" variable="fred">

I currently have all the binary info sitting in a ByteOutputStream - 
but I can't just use toString as it will convert it to chars - and I 
can't just use Response.setVariable as it only takes Strings....

What should I do? (And writing the file to the harddisk and then 
using cffile to read it back is not really what I want to do)

Like I said - a nice easy question.

Col.