Re: Base64 and line breaks
Tony Hansen <[email protected]> Mon, 19 May 2003 15:55:58 -0400
| Newsgroups | gmane.ietf.beep |
|---|---|
| Message-ID | <[email protected]> |
The base64 spec requires that any characters that are not in the base64 alphabet are to be ignored and allows such characters to be inserted anywhere in the stream. That includes line breaks. (Your C side is wrong.) Tony Hansen [email protected] Paul Andrews wrote: > Hi, > > I'm running into an interoperability problem regarding the base64 > encoding of blob data during a SASL profile exchange. One side (the Java > side) is using the mime encoding rules and inserting a line break after > every 76 characters of base64 encoded data. The other side (the C side) > is expecting a continuous stream of base64 data with no line breaks. > > Which side is right (the BEEP RFC simply states that blob data must be > base64 encoded for SASL exchanges, it doesn't say whether the blob > should follow mime rules for that data or not)?