This project is archived and is in readonly mode.

#2966 ✓resolved
John Franklin

to_xml generated <foo type="binary"> tags not accepted by from_xml

Reported by John Franklin | July 28th, 2009 @ 08:06 PM | in 3.0.2

Converting binary data to XML creates ... tags. Sending the same tag back to rails fails to decode the base64 because the from_xml doesn't acknowledge the type="binary" attribute. It expects a type="binaryBase64" attribute, instead.

The attached patch adds support for a type="binary" with an optional encoding="base64". If the encoding attribute is absent, the data is considered unencoded.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages