Thanks for the suggestion. As far as I know I would need an HTTP app server
to perform the download.

What I am looking for is an ad-hoc method to download the results of a
query in the query console.

Cheers,
Andreas

2015-07-23 15:50 GMT+02:00 <[email protected]>:

>  Hi Andreas,
>
>
>
> You can also use the Zip option , this will download your xml  into your
> local file system in zip file.
>
>
>
> let $zip := xdmp:zip-create(
>
>                <parts xmlns="xdmp:zip">
>
>                  <part>mimetype</part>
>
>             <part>result.xml</part>
>
>               </parts>,
>
>             (document { "application/epub+zip" },
>
>                  <result>{$resultData}
>
> </result>                 ))
>
> return
>
> ( xdmp:set-response-content-type("application/zip"),
>
>
>
> $zip)
>
>
>
>
>
> Thanks and regards
>
> Raja >>>
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Dave Cassel
> *Sent:* Thursday, July 23, 2015 6:29 PM
> *To:* MarkLogic Developer Discussion
>
> *Subject:* Re: [MarkLogic Dev General] Query Result Downloading (QConsole)
>
>
>
> To be precise, xdmp:save() will write to the file system of the server
> where it's running; that might or might not be your local, depending on
> where MarkLogic is running. If it's remote, it will write to that server,
> and you can download the files from there (assuming you have access).
>
>
>
> --
>
> Dave Cassel <http://davidcassel.net>, @dmcassel
> <https://twitter.com/dmcassel>
> Technical Community Manager
>
> MarkLogic Corporation <http://www.marklogic.com/>
>
> http://developer.marklogic.com/
>
>
>
>
>
> *From: *<[email protected]> on behalf of Andreas
> Hubmer <[email protected]>
> *Reply-To: *MarkLogic Developer Discussion <
> [email protected]>
> *Date: *Thursday, July 23, 2015 at 8:48 AM
> *To: *MarkLogic Developer Discussion <[email protected]>
> *Subject: *Re: [MarkLogic Dev General] Query Result Downloading (QConsole)
>
>
>
>   True, that is an option. Thanks!
>
>
>
> 2015-07-23 14:43 GMT+02:00 DK Singh <[email protected]>:
>
> You can save the result in your local system using xdmp:save function
>
> On Jul 23, 2015 6:02 PM, "Andreas Hubmer" <[email protected]>
> wrote:
>
>    Hello,
>
> Is there a possibility to download the result of a query instead of
> displaying it in the Query Console? Sometimes the result is just too big.
>
> Best regards,
>
> Andreas
>
>
> --
>
> Andreas Hubmer
>
> IT Consultant
>
>
>
> Web: http://www.ebcont.com
>
>
>
> OUR TEAM IS YOUR SUCCESS
>
>
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
> --
>
> Andreas Hubmer
>
> IT Consultant
>
>
>
> EBCONT enterprise technologies GmbH
>
> Millennium Tower
>
> Handelskai 94-96
>
> A-1200 Vienna
>
>
>
> Mobile: +43 664 60651861
>
> Fax: +43 2772 512 69-9
>
> Email: [email protected]
>
> Web: http://www.ebcont.com
>
>
>
> OUR TEAM IS YOUR SUCCESS
>
>
>
> UID-Nr. ATU68135644
>
> HG St.Pölten - FN 399978 d
>
>  This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted by
> applicable law, this e-mail and other e-mail communications sent to and
> from Cognizant e-mail addresses may be monitored.
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

Mobile: +43 664 60651861
Fax: +43 2772 512 69-9
Email: [email protected]
Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to