Upload base64 image to Firebase Cloud Storage using firebase-admin in nodejs

239 views
Skip to first unread message

Code Mickey

unread,
Jul 14, 2023, 11:50:47 AM7/14/23
to Firebase Google Group
I have a function in nodejs backend where I wish to upload images (base64 images) to my google cloud storage using firebase-admin package. I followed the documentation on adding a service account key to allow access and upload to the storage but I get an error whenever I try. I used the file.save() method but no success with error "Invalid response body while trying to fetch https://www.googleapis.com/oauth2/v4/token: read ECONNRESET". I need help. Thanks in advance 

Screenshot 2023-07-14 at 11.12.29 AM.png
Reply all
Reply to author
Forward
0 new messages