Implement "ToBase64" method