I'm confused on two things. I need to do these 2, but am not sure how:
Get the buffer of a PRIVATE image in cloud firestore from node
change the name of an imagefile thats in storage.(Either by setting the name as it is being uploaded, or changed afterward, both work).
Here is my current code that logs some giant thing that does indeed contain the file, but I can't find how to get the image data from it besides just the name of it/oth irrelivant stuff.
var theFile = bucket.file('Walks For Lives.png');
console.log(theFile)
Ideally, to do both of these things, I seek some way to do this:
var theFile = bucket.file('Walks For Lives.png');
var the imageBuffer = theFile.buffer;
theFile.name.set("newName");