问题
I need to upload a local file to Google Cloud Storage using Scala language. What is the easiest way to do it? This file will also need to be public downloaded later.
回答1:
Use the java library provided by Google. It will work with scala as well.
They provide an example of how to use this library here. It's in java but the scala equivalent should be easy to code.
来源:https://stackoverflow.com/questions/25540158/how-to-easily-send-local-file-to-google-cloud-storage-in-scala