>Data between
>
><w:binData w:name="wordml://02000001.jpg" xml:space="preserve"> and </w:binData>
>
are encoded in base64 and base64 is 7 bit encoding.
>
>But...
>
>if xml encoding is "UTF-8","UTF-7" no problema..
>if xml encoding is "UTF-16" you can try use
>
>
>STRCONV(STRCONV(STRCONV(FILETOSTR("newpicture.jpg"),13),1),5)
>
>
>1) to base64
>2) to DBCS
>3) to UNICODE (UTF-16)
>
>if xml encoding is "UTF-32" it's problem...
This is a fine piece of code. Thanks, it works extremely well.
Now, I just need to find the equivalent of that in .NET. Because, with its encoding, this is where I had some problems with it.