My reason for this is that the data (representing information I want to import into Firestore) could be quite large – maybe 50MB. I could easily have data that represents 30,000 documents. I don't want to process the data on my local machine because it would possibly take several hours.
My problem is I can't find a way to access Cloud Storage from the server itself. I can easily download and upload files between local and server. I've spent the last several hours reading through the docs but everything seems to be based on accessing Cloud Storage from a local instance.
Here are the comments already received over at SO:
There are lots of SDKs for various languages that you can use to work with Cloud Storage in backend code. Are you just having problems finding those? – Doug Stevenson Nov 29 at 4:17
Yes @DougStevenson, I guess there are just too many SDKs and it's quite confusing. I've been following your videos on "Getting started with Cloud Functions" and I have no problems accessing Cloud Firestore. I just can't see what I would have to do to access Cloud Storage. Right at the moment I just want to post to a HTTP end point and then within that function I want to grab hold of a file from Cloud Storage. I just can't see how to do that. – Chris Curnow Nov 29 at 6:47
Which Admin SDK are you using? – Renaud Tarnec Nov 29 at 11:12
To be clear, I am using Cloud Functions and when I say “server” I mean Google Cloud. In this scenario I thought I had to use the Node SDK. I found this tutorial codelabs.developers.google.com/codelabs/… but it only shows how to respond to Cloud Storage events. – Chris Curnow Nov 29 at 21:38
There is a node SDK for Cloud Functions. You can also use the Firebase Admin SDK, which wraps the Cloud node SDK. These are easy to find. – Doug Stevenson 2 days ago
OK, I have been using the node SDK for Cloud Functions. I still can't see anyway from there where I can go and grab a document from Storage. I found this in the docs: firebase.google.com/docs/reference/functions/providers_storage_. I hope you can understand that page because I can't. And I found this: firebase.google.com/docs/reference/admin/node/admin.storage which makes no more sense to me than the first one. I have been using Cloud Functions for a while now and have written some pretty extensive stuff. But Storage has got me stumped – Chris Curnow yesterday
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/adc34acd-dc93-4d05-85d1-28883092dfb1%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/9e756c0e-ec52-4882-afd9-a0d6eeae4dc9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/229e8721-3332-4510-8534-20e99ec1645f%40googlegroups.com.