cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Conover <>
Subject RE: file uploading, downloading
Date Tue, 22 Aug 2000 22:02:44 GMT
marcelo - 

I seem to remember you saying that I could use db prism facilities to grab
the inputstream (or maybe it was the outputstream?).  I can't find that
particular email in my archives though (maybe I'm crazy).  Anyway I'm still
trying to figure out how to upload and download files with cocoon...

Also, you may have noticed that I'm trying to move your sql functionality
into my own taglib with dissapointing results (connection tags just pass
right thru without evalutating).  Have you ever tried something similar?  If
so can you send me your example?


>  -----Original Message-----
> From: [] 
> Sent:	Thursday, August 03, 2000 5:19 AM
> To:	''
> Subject:	RE: file uploading, downloading
	> > Part of the requirement of my system is that users not have 
	> direct access
	> > (i.e. plain links) to documents on the filesystem.  I know 
	> that you can open
	> > up a file and send a bytestream to the browser in a servlet 
	> > there any good way of doing this in an xsp environment?
	> nope, not really. you'll want cocoon2's pass-through 
	> filtering for that. i
	> reckon you could abuse cocoon1's architecture to make it do so,
but it
	> wouldn't be pretty.
	> > I assume the same problem doesn't exist for uploading...I could
	> > reference Jason Hunter's multipart class and grab the incoming
	> > stream...right?
	> well, cocoon touches the input stream, so i don't think it'll 
	> work well
	> with jason's stuff, which needs the input stream intact. you could
	> redirect to cocoon from a servlet which used jason's stuff. 
	> his stuff has
	> a really silly license though - i wish there were a good no
	> attached multipart file upload thingie inside tomcat or 
	> jserv. personally
	> i'm now using a pass-through perl cgi which saves the file to the
	> filesystem, generates a new request to the real destination, and
	> back the results. works pretty well.
	> You could use JavaMail api in order to open multipart/form 
	> data request, this input stream is in mime complaint mode, 
	> similiar to mime body of an email.
	> - donald
	> Marcelo.
	> To unsubscribe, e-mail:
	> For additional commands, e-mail: 
	> << File: ATT00264.txt >> 

View raw message