Serving PDF content

2008-03-18 Thread Ben Sgro
Hello, I currently have an application that is in development. I need to return a pdf from the database. I've searched and haven't been able to find information about how to do this w/restlet. Any information is welcome. Thank you, - Ben

Re: Serving PDF content

2008-03-18 Thread Michael Terrington
Hi Ben, Ben Sgro wrote: I currently have an application that is in development. I need to return a pdf from the database. I've searched and haven't been able to find information about how to do this w/restlet. This is pretty straight forward. It's just a matter of returning a representation

Re: Serving PDF content

2008-03-18 Thread Adam Rosien
I often (almost every time!) forget to write getVariant().add(new Variant(...)) in my code. Perhaps we could brainstorm about making this less error-prone. .. Adam On Tue, Mar 18, 2008 at 4:29 PM, Michael Terrington <[EMAIL PROTECTED]> wrote: > Hi Ben, > > > Ben Sgro wrote: > > I currently hav

RE: Serving PDF content

2008-03-19 Thread Jerome Louvel
part de Adam Rosien > Envoyé : mercredi 19 mars 2008 05:01 > À : discuss@restlet.tigris.org > Objet : Re: Serving PDF content > > I often (almost every time!) forget to write getVariant().add(new > Variant(...)) in my code. Perhaps we could brainstorm about making > this less error

Re: Serving PDF content

2008-03-19 Thread Ben Sgro
Hello Michael, I was originally going to provide my own implementation for: public Representation getRepresentation(Variant variant) { My question should have also asked about specifics of serving pdf data. I'm very new to java/groovy. I'll google a bit more. - Ben Michael Terrington wrot

Re: Serving PDF content

2008-03-26 Thread Avi Flax
All: I work with Ben, and our project is written in Groovy. So far using Restlet in Groovy is going pretty well. When we have some time we'll post something about what we've learned. In the meantime, to address this specific need: Groovy doesn't support anonymous classes. So we can't use the exac

RE: Serving PDF content

2008-03-26 Thread Jerome Louvel
mars 2008 17:34 > À : discuss@restlet.tigris.org > Objet : Re: Serving PDF content > > All: > > I work with Ben, and our project is written in Groovy. So far using > Restlet in Groovy is going pretty well. When we have some time we'll > post something about what we&#

Re: Serving PDF content

2008-04-08 Thread Avi Flax
On Wed, Mar 26, 2008 at 3:03 PM, Jerome Louvel <[EMAIL PROTECTED]> wrote: > > Hi Avi, > > Why don't you try using an InputRepresentation instead? It is a concrete > class, you just need to pass an InputStream (ex: ByteArrayInputStream). Thanks Jerome, that's perfect. For some reason I missed th