Re: Downloading a BLOB
*/ public void close() throws IOException { if (inputStream != null) { inputStream.close(); inputStream = null; } } /** * @see IResourceStream#getContentType() */ public String getContentType() { // Let ResourceStreamRequestTarget handle content-type automatically return null; } /** * @return A readable input stream for this resource. The same input stream is returned until * ttInputStreamResourceStream.close()/tt is invoked. * * @throws ResourceStreamNotFoundException */ public InputStream getInputStream() throws ResourceStreamNotFoundException { if (inputStream == null) throw new ResourceStreamNotFoundException(InputStream could not be found); return inputStream; } } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:37 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty [EMAIL PROTECTED] wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Downloading a BLOB
* InputStreamResourceStream.close() is invoked. * * @throws ResourceStreamNotFoundException */ public InputStream getInputStream() throws ResourceStreamNotFoundException { if (inputStream == null) throw new ResourceStreamNotFoundException(InputStream could not be found); return inputStream; } } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:37 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Downloading a BLOB
close() throws IOException { if (inputStream != null) { inputStream.close(); inputStream = null; } } /** * @see IResourceStream#getContentType() */ public String getContentType() { // Let ResourceStreamRequestTarget handle content-type automatically return null; } /** * @return A readable input stream for this resource. The same input stream is returned until * InputStreamResourceStream.close() is invoked. * * @throws ResourceStreamNotFoundException */ public InputStream getInputStream() throws ResourceStreamNotFoundException { if (inputStream == null) throw new ResourceStreamNotFoundException(InputStream could not be found); return inputStream; } } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:37 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - 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] - 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]
Re: Downloading a BLOB
; } /** * @return A readable input stream for this resource. The same input stream is returned until * ttInputStreamResourceStream.close()/tt is invoked. * * @throws ResourceStreamNotFoundException */ public InputStream getInputStream() throws ResourceStreamNotFoundException { if (inputStream == null) throw new ResourceStreamNotFoundException(InputStream could not be found); return inputStream; } } -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:37 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty [EMAIL PROTECTED] wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - 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]
Downloading a BLOB
The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much.
Re: Downloading a BLOB
see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Downloading a BLOB
DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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]
Re: Downloading a BLOB
i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty [EMAIL PROTECTED] wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Downloading a BLOB
PROTECTED] Sent: Friday, October 10, 2008 3:37 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB i didnt say use the downloadlink, i said see how it works... -igor On Fri, Oct 10, 2008 at 3:32 PM, Dane Laverty [EMAIL PROTECTED] wrote: DownloadLink appears to accept only a file pathname. If I understand it correctly, the only way I could use that would be to read the BLOB into a file on the server, and then have the DownloadLink point to that file. I believe that would require me to have the file created when the page is generated, rather than when the link is clicked. Since there are going to be many links on this page, I would rather be able to wait until the user clicks the link to stream the BLOB to them. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2008 3:26 PM To: users@wicket.apache.org Subject: Re: Downloading a BLOB see how downloadlink works -igor On Fri, Oct 10, 2008 at 3:21 PM, Dane Laverty [EMAIL PROTECTED] wrote: The title basically says it all. I've got a BLOB in a database, and I want the user to be able to click a link and download it. Any wicket solutions to do this? Thanks much. - 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] - 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]