Text resources

Thursday, 27 October 2016 · 3 messages
KS
Kendall Shaw27 Oct 2016 02:05 #
Is this how I should retrieve text that is stored using db:store, within xquery?
stream:materialize(db:retrieve(‘some’,’some.txt’))
? Kendall
KS
Kendall Shaw27 Oct 2016 02:44 #
Err… I mean:
convert:binary-to-string(db:retrieve(‘some’,’some.txt’))
Can I skip the base64 part? Kendall
Quoted text · Kendall Shaw · 8 lines
From: <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Kendall Shaw <kendall.shaw at workday.com> Date: Wednesday, October 26, 2016 at 5:05 PM To: "basex-talk at mailman.uni-konstanz.de" <basex-talk at mailman.uni-konstanz.de> Subject: [basex-talk] Text resources Is this how I should retrieve text that is stored using db:store, within xquery? stream:materialize(db:retrieve(‘some’,’some.txt’)) ? Kendall
CG
Christian Grün27 Oct 2016 10:23 #
Quoted text · Kendall Shaw · 1 line
> convert:binary-to-string(db:retrieve(‘some’,’some.txt’))
…exactly. I have added a little example to our documentation. Cheers, Christian [1] http://docs.basex.org/wiki/Database_Module#db:retrieve

⚡Generated with XQuery