As usual Mike is almost always right !
Earlier I did same using HTTP where as binary (zip file) streams are sent as base64-encoded format from application layer. xquery module get this stream from incoming request parameter and then decoded ( base64-decoded) and extract the file from binary zip.
A kind of similar approach I am going to replicate using XCC API.
Thanks & Regards
Abhishek Srivastav
Tata Consultancy Services
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
-----Michael Sokolov <[email protected]> wrote: -----
Abhishek Srivastav
Tata Consultancy Services
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
To: General MarkLogic Developer Discussion <[email protected]>
From: Michael Sokolov <[email protected]>
Date: 06/18/2011 11:26PM
cc: Abhishek53 S <[email protected]>, [email protected]
Subject: Re: [MarkLogic Dev General] File upload external variable type
I think /xdmp/:/base64/-/decode will be your friend here...
-Mike
/
On 6/18/2011 1:00 PM, Abhishek53 S wrote:
>
> Hi All ,
>
> Extending the scope of my last discussion. Can it be possible to
> transfer binary data over XCC to any xquery module. If so what would
> be supportive datatype?
>
> Thanks in advance !
> Abhishek Srivastav
> Tata Consultancy Services
> Mailto: [email protected] <mailto:[email protected]>
> Website: http://www.tcs.com
> ____________________________________________
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> ____________________________________________
>
> -----Mike Sokolov <[email protected]> wrote: -----
>
> To: General MarkLogic Developer Discussion
> <[email protected]>
> From: Mike Sokolov <[email protected]>
> Date: 06/15/2011 11:06PM
> cc: Abhishek53 S <[email protected]>
> Subject: Re: [MarkLogic Dev General] File upload external variable
> type
>
> I don't think there is any way to pass a document (qua document)
> as an external variable to a module. But you could pass a string
> that you parse in xquery using xdmp:unquote, thus creating an
> element that you could insert (or replace).
>
> -Mike
>
> On 06/15/2011 10:25 AM, Abhishek53 S wrote:
>>
>> Hi All
>>
>> I need to insert the file into Marklogic. I am bounded not to use
>> the insert-content by xcc API library as it requires some other
>> processing which is present in the xquery module. How do we
>> transfer the file to Markloic. Please let me know the datatype of
>> external variable in xquery module as well as in .Net application
>>
>> Thanks & Regards
>> Abhishek Srivastav
>> Systems Engineer
>> Tata Consultancy Services
>> Cell:- +91-9883389968
>> Mailto: [email protected]
>> Website: http://www.tcs.com <http://www.tcs.com/>
>> ____________________________________________
>> Experience certainty. IT Services
>> Business Solutions
>> Outsourcing
>> ____________________________________________
>> =====-----=====-----=====
>> Notice: The information contained in this e-mail
>> message and/or attachments to it may contain
>> confidential or privileged information. If you are
>> not the intended recipient, any dissemination, use,
>> review, distribution, printing or copying of the
>> information contained in this e-mail message
>> and/or attachments to it are strictly prohibited. If
>> you have received this communication in error,
>> please notify us by reply e-mail or telephone and
>> immediately and permanently delete the message
>> and any attachments. Thank you
>>
>>
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
