Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 AWS SDK Java 进行文件上传。我想在 s3 上以 zip 格式上传文件。
是否有任何方法可以直接压缩我在 s3 上上传的文件。
或者我必须创建一个 zip 然后上传到 s3。
谢谢你。
您需要在上传文件之前对其进行压缩,或者在文件上传后使用Lambda 函数对其进行压缩。
SDK 中没有“帮手”来实现您的要求。