如何在Java中将文件发布到我的S3 URL?

huangapple go评论93阅读模式
英文:

How to post a file into my s3 url in java?

问题

我正在尝试更多地使用AWS,并且我已经到了可以生成一个S3存储桶URL的阶段。现在我已经设置好了这个URL,我正在尝试将一个文档(文件)放入那个URL。在我尝试这样做时,是否有任何有用的文档或我应该知道的事情?我似乎在网上找不到任何关于Java用户的信息(也许我只是不擅长搜索,不知道)。谢谢。

英文:

I'm trying to practice using AWS more and I'm at a point where I can generate a S3 bucket URL. Now that I have that set up I'm trying to put a document (file) into that URL. Is there any useful documentation or things I should know when I try to do that? I can't seem to find anything on the web for Java users. (maybe I'm just bad at searching idk). Thanks

答案1

得分: 2

AWS SDK For Java

使用示例与S3合作

英文:

There is AWS SDK for Java provided by Amazon

AWS SDK For Java

Example work with S3

答案2

得分: 0

AWS上传文件到S3的示例:

https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-s3-objects.html#upload-object

您需要一个令牌才能从Java客户端访问您的账户资源,更多信息请参阅:https://aws.amazon.com/premiumsupport/knowledge-center/create-access-key/

英文:

AWS example of loading file to s3:

https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-s3-objects.html#upload-object

and you would need a token to access you account resources from a java client more info here : https://aws.amazon.com/premiumsupport/knowledge-center/create-access-key/

huangapple
  • 本文由 发表于 2020年8月6日 22:39:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/63285987.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定