-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Java: S3 - Missing Method to receive Object Url #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi Andre, thank you |
Hi. Thanks for your mail. We need to PUT Objects to S3 Storage. After that, we store URL from S3 Object into Database as relation. For that, we use the Function "getUrl" from SDK 1.X, which works great. Now, there is no real Way (which i know yet) to determine Real 100% URL from SDK. I wrote my own simple Helper Method now for that, who check the Object via HTTP HEAD Connection, but i personally think, it's the best to use underlying Framework (S3 SDK) for this. Thanks, Andre. |
@AndreMarthaler can you share your code that you used to get the URL. I'm also looking for this feature, sad it went in v2 |
Hi Chris. I found no way to get URL from SDK. So i create it by hand. So my used method for that:
Might be, there is a better way, but for me, it works. Greets, Andre. |
Thank you for your request. I know the team for the AWS Java SDK are working to add more features to the Java v2. You can formally request the feature by adding an issue on the official aws-sdk-java-v2 repository For more information about using the S3Utilities class in v2 to get a Url, checkout issue #860. I"m going to close this issue for now, but if you want to add a code example feel free to create a pull request. |
Hi.
In Java S3 Client SDK Version 1.X exists a method named "getUrl" which return all informations for object url. Now i see, method doesn't exists in new SDK.
How i can solve, getting url from Object?
SDK Documentation from Java 1.X SDK:
https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/AmazonS3.html#getUrl-java.lang.String-java.lang.String-
greets,
Andre.
The text was updated successfully, but these errors were encountered: