Re: How to download a file without creating it on a server

2010-11-25 Thread lunch716
Hi, I found the following the thread, and now I apply that method. I think it is the best solution for this issue.(namely create custom Result class) http://www.mail-archive.com/user@struts.apache.org/msg79822.html Thanks. Ken --- lunch...@yahoo.co.jp wrote: > Hi Dale, > > Thank you for yo

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
Hi Dale, Thank you for your reply. It sounds I can make it, even though there might be some problems about closing streams. When I coded like the following, I could get the download file(i.e. I could concatenate the ByteArrayInputStream objects. ) Note.I must rely on SequenceInputStream refered

Re: How to download a file without creating it on a server

2010-09-16 Thread Dale Newfield
java.io.SequenceInputStream might prove helpful to you here, as well. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
a") > >> 篠 篠 篠 篠 > >> 篠 篠 篠 篠 return new > >> ByteArrayInputStream(sb.toString().getBytes("windows-1250")); > >> } > >> > >> Best greetings, > >> Pawe裘悉裘自賾� Wielgus. > >> > >> > >> 2010/9/16

Re: How to download a file without creating it on a server

2010-09-16 Thread Paweł Wielgus
t;> 2010/9/16 Tommy Pham : >> > >> >> -----Original Message----- >> >> From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp] >> >> Sent: Wednesday, September 15, 2010 9:23 PM >> >> To: Struts Users Mailing List >> >&g

Re: How to download a file without creating it on a server

2010-09-16 Thread lunch716
ch...@yahoo.co.jp] > >> Sent: Wednesday, September 15, 2010 9:23 PM > >> To: Struts Users Mailing List > >> Subject: Re: How to download a file without creating it on a > server > >> > >> Hi Dave and Allen, > >> > >>

Re: How to download a file without creating it on a server

2010-09-16 Thread Paweł Wielgus
est greetings, Paweł Wielgus. 2010/9/16 Tommy Pham : > >> -Original Message- >> From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp] >> Sent: Wednesday, September 15, 2010 9:23 PM >> To: Struts Users Mailing List >> Subject: Re: How to download a file wi

RE: How to download a file without creating it on a server

2010-09-15 Thread Tommy Pham
> -Original Message- > From: lunch...@yahoo.co.jp [mailto:lunch...@yahoo.co.jp] > Sent: Wednesday, September 15, 2010 9:23 PM > To: Struts Users Mailing List > Subject: Re: How to download a file without creating it on a server > > Hi Dave and Allen, > >

Re: How to download a file without creating it on a server

2010-09-15 Thread lunch716
Hi Dave and Allen, Thank you for quick reply. Frankly speaking, I'm not familiarity with using stream and could not come up with some ideas. When I coded with java.io.PipedInputStream/PipedOutputStream like follwoing, I could download an empty file with IllegalStateException. If anyone give an

Re: How to download a file without creating it on a server

2010-09-15 Thread Allen Lee
Sometimes I'll create a temp file via File.createTempFile and open an InputStream for that but you could just as easily use one of these techniques: http://ostermiller.org/convert_java_outputstream_inputstream.html 2010/9/15 : > I would like to collect the data by accessing database and create t

Re: How to download a file without creating it on a server

2010-09-15 Thread Dave Newton
On Wednesday, September 15, 2010, wrote: > I would like to collect the data by accessing database and create the > contents for a download file. > > Without creating the real file for InputStream that the struts2 convention > proposes to use for download, how to code? A stream is a stream-doesn't

How to download a file without creating it on a server

2010-09-15 Thread lunch716
I would like to collect the data by accessing database and create the contents for a download file. Without creating the real file for InputStream that the struts2 convention proposes to use for download, how to code? Regards. -- Get the new Internet Explorer