atom feed6 messages in net.sourceforge.lists.exist-open[Exist-open] RestXQ and streaming bin...
FromSent OnAttachments
Dr Josef KarthauserNov 11, 2013 9:03 am 
Dr Josef KarthauserNov 11, 2013 10:20 am 
Adam RetterNov 11, 2013 10:39 am 
Dr Josef KarthauserNov 11, 2013 11:55 am 
Adam RetterNov 11, 2013 11:58 am 
Dr Josef KarthauserNov 11, 2013 2:35 pm 
Subject:[Exist-open] RestXQ and streaming binary?
From:Dr Josef Karthauser (jo@karthauser.co.uk)
Date:Nov 11, 2013 9:03:01 am
List:net.sourceforge.lists.exist-open

Does anyone know how to stream binary files out through a RestXQ endpoint?

I'm looking to do the equivalent of:

let $pdf := xslfo:render($fo, "application/pdf", (), $fopconfig) return response:stream-binary($pdf, "media-type=application/pdf", $filename)

but in my restxq.

I've tried this:

(<rest:response> <output:serialization-parameters> <output:media-type value='application/pdf'/> </output:serialization-parameters> </rest:response>, $pdf))

but, of course that's not going to work!

Thanks, Joe

------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk