How can I read and write to Firebase Storage from within Cloud Functions for Firebase? -


i want save file cloud functions firebase firebase storage.

i want read file firebase storage cloud functions firebase @ later time.

i couldn't find example same. can help?

cloud functions run in standard v8 node.js container. can use regular node sdk google cloud storage interact files.

a snippet of code link:

// upload local file new file created in bucket. bucket.upload('/photos/zoo/zebra.jpg', function(err, file) {   if (!err) {     // "zebra.jpg" in bucket.   } }); 

but really: go link, contains better example i'm willing copy/paste here.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -