如何轻松地将本地文件发送到Scala中的Google Cloud Storage [英] How to easily send local file to Google Cloud Storage in Scala

查看:56
本文介绍了如何轻松地将本地文件发送到Scala中的Google Cloud Storage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用Scala语言将本地文件上传到Google Cloud Storage.最简单的方法是什么?此文件也需要稍后公开下载.

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.

推荐答案

使用

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.

这篇关于如何轻松地将本地文件发送到Scala中的Google Cloud Storage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆