Box to Aws S3
Hi,
I am working on a project, where i need to store files in Aws S3 bucket from box folder using SDKs. I tried all sorts of methods, but failing to achieve this in java. Any help would be greatly appreciated. I tried downloading box file to local machine and uploading and it worked, but i don't want this intermediate step of downloading to local machine. I want to pass the downloaded box file's stream object to have in a pipeline to upload to S3 bucket.
Regards
Nishal
-
Hey -- I'd love to hear more about your use case for moving these files into S3.
In the grand scheme of your best options, downloading the file locally and then uploading to S3 is the most accessible and would probably make it easier to handle the tasks between platforms more async since you can request a new file as you're uploading to S3.
The only alternative I can think of that would allow you to avoid downloading the files locally would be to use the new Skills API (blog post, documentation) or Token Exchange (blog post, documentation) to obtain a temporary authenticated link to the file which you can pipe into S3 if it supports publicly accessible URLs. Just be mindful of token leakage in version control, etc. -
Could you maybe leverage the fact that Box supports FTPS?
See https://community.box.com/t5/Upload-and-Download-Files-and/Using-Box-with-FTP-or-FTPS/ta-p/26050
It may not be as sexy as doing it fully via the Box API, but FTPS is pretty easy to do with just about every programming language these days.
Hope that helps,
Ian
-
Hi,
I come to this post late but one advice i can give to transfer the files without downloading and uploading using migration tool would be good from box to s3.
サインインしてコメントを残してください。
コメント
5件のコメント