Uploading a buffer to google cloud storage
I'm trying to save a Buffer (of a file uploaded from a form) to Google Cloud storage, but it seems like the Google Node SDK only allows files with a given path to be uploaded (Read / Write streams). This is what I have used for AWS (S3) - is the anything else similar in the Google node SDK?: var fileContents = new Buffer('buffer'); var params = { Bucket: //bucket name Key: //file name ContentType: // Set mimetype Body: fileContents }; s3.putObject(params, function(err, data) { // Do something }); The only way that I have found to do it so far is write the buffer to disk, upload the file using