<div dir="ltr">Hello everyone, <div><br></div><div style>It seems that we can simply use plist to get the decoding done...and since we don't need encoding on the remote end, the problem was solved with this one-liner:</div>

<div style><br></div><div style>







<p class=""><span class="">[</span><span class="">NSPropertyListSerialization</span><span class=""> </span>propertyListWithData<span class="">:[plist </span>dataUsingEncoding<span class="">:</span>NSASCIIStringEncoding<span class="">] </span>options<span class="">:</span><span class="">0</span><span class=""> </span>format<span class="">:</span><span class="">NULL</span><span class=""> </span>error<span class="">:</span><span class="">NULL</span><span class="">];</span></p>

<p class="" style><span class="">Not sure if that's really safe to use but I've just done some tests and it works pretty well. If anyone of you have used this method please let me know. For now I've wrapped that into NSData as a category. </span></p>

<p class="" style>Will post a screenshot on my blog shortly. Now once server-end starts the slides show, we got a preview image and lecturer's notes on the remote end :P</p><p class="" style>Cheers!</p><p class="" style>

Siqi</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/11 Siqi Liu <span dir="ltr"><<a href="mailto:me@siqi.fr" target="_blank">me@siqi.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hello all,<div><br></div><div>Thanks for your help, it's great to have many helping hands here :) </div><div><br></div><div>I think I would write my own implementation since it doesn't seem to be really complicated... I will not create a separate utility class but instead add it to a category for NSData. I will test that today and let you know what I get there. </div>


<div><br></div><div>All the best!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Siqi</div><div><br></div></font></span></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">

2013/6/10 Cedric Bosdonnat <span dir="ltr"><<a href="mailto:cbosdonnat@suse.com" target="_blank">cbosdonnat@suse.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, 2013-06-10 at 11:21 +0300, Tor Lillqvist wrote:<br>
> I don't think we want to drag in boost in an otherwise clean<br>
> Objective-C -only app. (Cédric's code at least includes a boost<br>
> header, too.)<br>
<br>
</div>Just pay attention with my code: I wanted it to work on streams when I<br>
don't have the full content to encode.<br>
<br>
The boost header used in that file is not used by the EncodedData class<br>
actually doing the base64 encode/decode work. Note that Base64 isn't<br>
that complex, you can even write one in objective-C pretty quickly.<br>
<br>
--<br>
Cedric<br>
<div><div><br>
_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div><div class="im">-- <br><div dir="ltr"><div>--------</div><div><br></div><div>Cordialement,</div>Siqi LIU<div><br><div>Étudiant Ingérieur, Université de Technologie de Compiègne<br>


<div>Vice-Président de l'association robotique UTCoupe</div></div><div>Responsable d'atelier de ClubChine</div></div><div><br></div><div>------</div><div>  Tel. <a href="tel:%2B33%207%2061%2016%2095%2083" value="+33761169583" target="_blank">+33 7 61 16 95 83</a><br>

</div><div>  email: <a href="mailto:me@siqi.fr" target="_blank">me@siqi.fr</a></div>
<div>------</div></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>--------</div><div><br></div><div>Cordialement,</div>Siqi LIU<div><br><div>Étudiant Ingérieur, Université de Technologie de Compiègne<br><div>

Vice-Président de l'association robotique UTCoupe</div></div><div>Responsable d'atelier de ClubChine</div></div><div><br></div><div>------</div><div>  Tel. +33 7 61 16 95 83<br></div><div>  email: <a href="mailto:me@siqi.fr" target="_blank">me@siqi.fr</a></div>

<div>------</div></div>
</div>