Menu

#21 gds_format_base64 needs .decode('ascii')

1.0
open
2021-08-30
2021-08-30
JROC
No

Hey, most excellent work on this project (life saver since 4Suite is gone)

I am working with data type xs:base64Binary.

When the auto generated code builds the GeneratedSuper class and member function gds_format_base64() it returns base64.b64encode(input_data) which ends up being a bytes type rather than a string type.

I have hand modified my code to return:
base64.b64encode(input_data).decode('ascii')

without it the xml export ends up with b'xxxxx=' in the field rather than 'xxxxx='

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.