How to easily send local file to Google Cloud Storage in Scala

半腔热情 提交于 2021-02-20 17:57:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!