Thanks! The pointer to RawScreen is just what I was looking for.

In case anyone is interested, I'm doing the samba stuff with jcifs (feel
lucky @ google to find it) -- a Java implementation of the samba protocol...
It's slick and fits so nice & easy into the Turbine framework.

-d

-----Original Message-----
From: Rodney Schneider [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 10:59 PM
To: Turbine Users List
Subject: Re: file stream

On Tue, 26 Nov 2002 16:40, you wrote:
> Hello. I'm implementing some extranet functionality, allowing users
> to access a samba fileshare (that is not publicly accessible) through
> turbine (which is)... however I'm kind of stumped. Since the file
> server is remote to the web server (and its content is only accessed
> through the SMB protocol from local IPs), the client can not directly
> download a file from the file server (i.e. get directed to the
> fileserver by the web server). Instead, I need to create a stream is
> the samba share to the turbine VM... how do I send that stream to the
> client? Is a custom servlet necessary? Or is there some clever way to
> do this with Turbine that I'm overlooking or don't know about (I am
> admittedly still a novice to Turbine)?

Hi Derek,

You could write a sublclass of RawScreen that sucks the file in via the 
SMB protocol (possibly using a custom InputStream) and squirts it down 
the ServletOutputStream of the response one byte array at a time (ie: 
data.getResponse().getOutputStream()).

Regards,

-- Rodney

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to