Re: Base64 weirdness

2011-11-01 Thread Maarten Koopmans
Relacing crlf in lc and using adifferet scala lib on the other end solved this. Thanks for all of your help. On Monday, October 31, 2011, Maarten Koopmans wrote: > Still struggling, I'll try, > > @Mark: I'm on a mac > > On Saturday, October 29, 2011, Richard Gaskin wrote: >> Maarten Koopmans wro

Re: Base64 weirdness

2011-10-31 Thread Maarten Koopmans
Still struggling, I'll try, @Mark: I'm on a mac On Saturday, October 29, 2011, Richard Gaskin wrote: > Maarten Koopmans wrote: >> >> You're right, but i've found that other languages don't ignore them, >> whether they are c-based string wrapped scripting languages or compile to >> the JVM for in

Re: Base64 weirdness

2011-10-31 Thread Maarten Koopmans
There was a thread on that, that seems to do the trick... https://mail.google.com/mail/?shva=1#search/label%3Ause-lc+base64/13250dfc8da329ef On Sat, Oct 29, 2011 at 6:55 PM, Maarten Koopmans wrote: > > > On Saturday, October 29, 2011, Richard Gaskin > wrote: >> Maarten Koopmans wrote: >>> >>> Y

Re: Base64 weirdness

2011-10-29 Thread Maarten Koopmans
On Saturday, October 29, 2011, Richard Gaskin wrote: > Maarten Koopmans wrote: >> >> You're right, but i've found that other languages don't ignore them, >> whether they are c-based string wrapped scripting languages or compile to >> the JVM for instance. >> >> I think LC follows the RFC bette

Re: Base64 weirdness

2011-10-29 Thread Richard Gaskin
Maarten Koopmans wrote: You're right, but i've found that other languages don't ignore them, whether they are c-based string wrapped scripting languages or compile to the JVM for instance. I think LC follows the RFC better, but not necessarily better interoprable. Anuway, another recent thre

Re: Base64 weirdness

2011-10-29 Thread Maarten Koopmans
You're right, but i've found that other languages don't ignore them, whether they are c-based string wrapped scripting languages or compile to the JVM for instance. I think LC follows the RFC better, but not necessarily better interoprable. Anuway, another recent thread turned out to have a so

Re: Base64 weirdness

2011-10-29 Thread Richard Gaskin
Maarten Koopmans wrote: Sorry for the cross-post from the forum, but this (silly) thing is becoming a blocker. A (to me) subtle question, which has to do with the base64 encoding. A base 64 encoded binary needs to be a multiple of 4. It' what all other implementation seem to do as well (tested

Re: Base64 weirdness

2011-10-29 Thread Colin Holgate
It could be not just that LC uses carriage return and line feed, but that some tools don't even break the results up into lines. You base64 encode things to make sure they can travel ok, or perhaps to hide what the text really says. For most cases you may not need to split the results into lines

Re: Base64 weirdness

2011-10-29 Thread Mark Schonewille
Hi Maarten, The difference in the number of bytes of your base 64 encoded strings equals the number of lines of these strings. Apparently, LC uses crlf where other languages use either cr or lf. I assume you are on Windows. Try reading the file as file instead of binfile and the problem should

Base64 weirdness

2011-10-29 Thread Maarten Koopmans
Sorry for the cross-post from the forum, but this (silly) thing is becoming a blocker. A (to me) subtle question, which has to do with the base64 encoding. A base 64 encoded binary needs to be a multiple of 4. It' what all other implementation seem to do as well (tested Scala (JVM) and REBOL (C un