Skip to content

Instantly share code, notes, and snippets.

@Ikhiloya
Created June 15, 2020 15:33
Show Gist options
  • Save Ikhiloya/eda6a397fa78a345702f3d2589dd3021 to your computer and use it in GitHub Desktop.
Save Ikhiloya/eda6a397fa78a345702f3d2589dd3021 to your computer and use it in GitHub Desktop.
{
"type": "",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "",
"token_uri": "",
"auth_provider_x509_cert_url": "",
"client_x509_cert_url": ""
}
@Ikhiloya
Copy link
Author

Thanks @FrankDupree.It's working fine now.

I converted the json string to inputstream using Apache commons IOUtils:
IOUtils.toInputStream(json)

then passed it unto the Firebase Storage initialization code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment