nvflare.fuel.hci.base64_utils module¶
- b64str_to_binary_file(b64str: str, file_name)[source]¶
Decode a base64-encoded string and write it into a binary file.
- Parameters:
b64str – the base64-encoded ASCII string
file_name – the file to write to
Returns: number of bytes written
- b64str_to_text_file(b64str: str, file_name)[source]¶
Decode a base64-encoded string and write result into a text file.
- Parameters:
b64str – base64-encoded string
file_name – file to be created
Returns: number of data types written (may not be the same as number of characters)