How to convert complete xml file to base64 string using python/ scala?
I have tried b64 module ,but it requires a string(bytes-like) to be passed to it . But how to do that with ML given it's multiline structure and hierarchy. Could anyone give an example on how to do it.
Thanks.
open('file.xml', 'r'), doopen('file.xml', 'rb')