You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Sherwood <js...@romulin.com> on 2004/10/14 19:34:36 UTC

Service to pull a file

Hi,

I was wondering if anyone could give me an example of a service whereby you
can give a html link that would pull a file from a database(a blob), name it
what you like and serve it to the browser.

Is this possible?

Thanks in advance,
James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Service to pull a file

Posted by James Sherwood <js...@romulin.com>.
Sure, that would be great

jsherwood@romulin.com

Thanks!

----- Original Message ----- 
From: "Lars Hoss" <wo...@acidware.net>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, October 14, 2004 4:25 PM
Subject: Re: Service to pull a file


Hi!

I have implemented this in my weblog system (based on Tapestry).
I can send you the code if you like.

Yours,
Lars

Am 14.10.2004 um 19:34 schrieb James Sherwood:

> Hi,
>
> I was wondering if anyone could give me an example of a service
> whereby you
> can give a html link that would pull a file from a database(a blob),
> name it
> what you like and serve it to the browser.
>
> Is this possible?
>
> Thanks in advance,
> James
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
"Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht
umgekehrt." -- Cocteau, Jean


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Service to pull a file

Posted by Lars Hoss <wo...@acidware.net>.
Hi!

I have implemented this in my weblog system (based on Tapestry).
I can send you the code if you like.

Yours,
Lars

Am 14.10.2004 um 19:34 schrieb James Sherwood:

> Hi,
>
> I was wondering if anyone could give me an example of a service 
> whereby you
> can give a html link that would pull a file from a database(a blob), 
> name it
> what you like and serve it to the browser.
>
> Is this possible?
>
> Thanks in advance,
> James
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
"Stil ist die Fähigkeit, komplizierte Dinge einfach zu sagen - nicht 
umgekehrt." -- Cocteau, Jean


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Service to pull a file

Posted by Jonny Wray <jo...@yahoo.com>.
James,

I wrote something similar, although it dosen't get the data directly
from the database, I tend not to have any database specific stuff in my
Tapestry code.

Anyway, I basically modified the chart example in the workbench. It
shows how to feed an image, but the concept is the same: change the
mime type to whatever you need for your file type (excel, pdf, text),
create the file data in memory and write it to the request output
stream.

The call 

response.setHeader("Content-disposition", filename);

can be used to set the filename, at least in IE.

Jonny

--- James Sherwood <js...@romulin.com> wrote:

> Hi,
> 
> I was wondering if anyone could give me an example of a service
> whereby you
> can give a html link that would pull a file from a database(a blob),
> name it
> what you like and serve it to the browser.
> 
> Is this possible?
> 
> Thanks in advance,
> James
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org