nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
254 stars 63 forks source link

Support: Does pyrebase4 has the ability to store a base64 encoded image to firebase? #17

Closed kengoon closed 3 years ago

kengoon commented 3 years ago

I belive that firebase has the ability to store base64 encoded image, I don't know if the feature is included in this library or not. it will be really nice to have it

nhorvath commented 3 years ago

If you base64 encode it it's a string so yes.

kengoon commented 3 years ago

@nhorvath please can you show an example? please

nhorvath commented 3 years ago

https://www.google.com/search?q=base64+encode+image+python&oq=base64+encode+image+python&aqs=chrome..69i57j69i60l2.5170j0j4&sourceid=chrome&ie=UTF-8

kengoon commented 3 years ago

I meant you should show an example of how to store the base64 image string in firebase

nhorvath commented 3 years ago

It's just a string. Read the readme.

kengoon commented 3 years ago

ok

kengoon commented 3 years ago

@nhorvath I get this error ValueError: total bytes could not be determined. Please pass an explicit size, or supply a chunk size for a streaming transfer. when I try to upload an image to firebase

kengoon commented 3 years ago

i checked the library and discovered that there is no parameter for chunk_size