简体   繁体   English

我可以使用 Java 将文件从 SMB 上传到 AWS S3

[英]Can I use Java to upload file to AWS S3 from SMB

I want to directly upload file from SMB to S3(AWS) use Java.我想使用 Java 直接将文件从 SMB 上传到 S3(AWS)。 Could you give me some advice to fix this issue.你能给我一些建议来解决这个问题吗? (Not download to local and upload to S3) (不下载到本地并上传到 S3)

You can get an InputStream from the SMB File object, and an OutputStream to the S3 bucket File.您可以从 SMB 文件 object 中获取 InputStream,并从 S3 存储桶文件中获取 OutputStream。 This will however traverse through your own machine (ie SMB --InputStream--> Your app --OutputStream--> S3).然而,这将遍历您自己的机器(即 SMB --InputStream--> Your app --OutputStream--> S3)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM