But there is no write method in outputstream that could write a inputstream. could I just use method write(byte [] ) in outputstream?
thanks a lot..
haipeng




From: "James Mason" <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: how to use response to send outputstream back to client
Date: Wed, 14 Jul 2004 10:14:00 -0700

Use WebdavResource.getMethodData() to get an InputStream for the file.
Use response.getOutputStream() to get an OutputStream to which you can
write the InputStream. Be sure to set appropriate headers on the
response to indicate file type/length/etc.

-James

>>> [EMAIL PROTECTED] 7/14/2004 9:50:13 AM >>>
I use the inputstream from request to upload a file from client to
slide
server through web page. but how could i send back the file back to
client
when i get file from slide server without writing temp file in web
server?
how could i set response in servlet?
thanks a lot.
haipeng

_________________________________________________________________
Get tips for maintaining your PC, notebook accessories and reviews in
Technology 101. http://special.msn.com/tech/technology101.armx


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


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


_________________________________________________________________
Check out the latest news, polls and tools in the MSN 2004 Election Guide! http://special.msn.com/msn/election2004.armx



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



Reply via email to