Hi Ravi,

I suggest :

* to wrap you document generator lib with base64 dataformat stuff :
http://camel.apache.org/base64.html

* copy you base64 content to an header

* and use it a parameter for xslt template
http://camel.apache.org/xslt.html#XSLT-GettingParametersintotheXSLTtoworkwith

I hope it could help you

Best Regards, Bien à vous,  どうぞお元気で、
____________________________________________________
Greg* AUTRIC

On Tue, Dec 6, 2016 at 7:20 PM, ravi21588 <ravi21...@gmail.com> wrote:

> Hi,
>
> The document generation system is not directly exposed for consuming in
> internet.
>
> We have custom library classes which we invoke and it return the document
> as
> byte[].
>
> once i get the response as byte array,i need to create an xml with just a
> root element pdf-data.
>
> I am assuming that if i define pdf-data as type="xs:base64binary" i can
> place the binary content in xml
>
>
> <pdf-data>
> %PDF-1.4
> %????
>     5 0 obj
> <<
> /Length 6 0 R
> /Filter /FlateDecode
> >>
> stream
> x??}K?m?m?\?BC?J>??Y??]??S?M?4IG?l???< }6H~?\k?Ew?????$ ?
>  ????}?????}???7?????? ^뿿kq/????? ?? |?W?~??i????? ? ??ο?z _?[??+????
>  ?r??O ?
> ]?/?c??
> pv/  ?? P?? ??U? ? ? ?? @[{9?  p?9A? w  ?? ?N? ? ??r???????c} ?? ??????
> ???n?????P#? ?h>?mc???j????? /6 ?????Ecc?? ?{u=??  z? L?A??L???
> ?H??O? Z?HXo? L?`?0?? u?
> ???kX )??? ???Aꀤ~ ??_`???T M6 ????'?~??Q ?KrQ??x??c=?%??????'q ??? ? ??;?
> ? n $2D??{ဃr;? ???? ?e?;uL*???
> q??
> o $.?? ???U v
> ? /?G?%*?J<????r  ?|?8??=?Q} ??(  ??????? m? ?N<G?
> ?Z??OC%?k?????]?!v????^??O? .3?W??&lt;'?? _V
>   e
> ?M?? n&amp;
> 7?{?? ???? ??? ??L0??=? F8?M?C??? L*w?7?z7V??,?B0Pf????? ?C???c&amp;?
> I??EQ??+?Q_? ??
> 9 )?L8Rvm ??!?&lt;? y?5j??(~? ? ?? ? ??a
> ?0? >"G?c??&?:?@,?'?+M?Q?E?a??R, H?g?_?H? ?`??X"?_#?     A???v
> gH9LXlL9????A?:+
> ?:]?
>  S?=?(? m;R???%
> ?? I?t???XNm_??m /L?t??"??[G&?7?/?@?y??5?s??~?~5u????K? wO???b?M?i??q
> ?a\?~nH7?=?S
> </pdf-data>
>
> Kindly let me know if doesn't make sense.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/XSLT-transformation-Base64binary-and-camel-xslt-tp5791061p5791161.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to