using input streams? Used with <x:transform>?

S

spliffmonkey

I am really confused. Basically I have a function. It returns and
inputstream. I am writing a jsp page that uses this inputstream. I have
tried things like:
<%
out.println(file.getStream());
%>

But the stream doesnt seem to work that way.

What I really want to do is use it with <x:tranform> tag from the
jakarta standard taglibs.
Ive succesfully used:

<c:set var="string"><%=file.getString()%></c:set>

Which clearly just gets a string. But I want to use a stream like this:

<c:set var="stream"><%=file.getStream()%></c:set>

But that doesnt seem to work.

To be honest I have no idea how to use streams. If you could point me
to some basic info on them that would be great.

Btw: I can also have it return a stream of type Reader if that is any
use. I dont really get the difference.

Thanks
T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top