Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7007679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:38:19+00:00 2026-05-27T21:38:19+00:00

Has anyone successfully done this? My idea is to post to a servlet and

  • 0

Has anyone successfully done this?

My idea is to post to a servlet and it will respond with Query String Request Authentication url after the servlet has authenticated the user. The user will then use this url to upload a picture file.

Was wondering if this is even possible.

The thing I don’t get is how do you transfer the picture from your computer or device to the s3.

This is the StringToSign:

PUT\n
(content here?)\n
image/jpeg\n
1175139620\n
/johnsmith/photos/puppy.jpg

How do I inser the content into the string to sign? Do i base64 it first then md-5 it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:38:19+00:00Added an answer on May 27, 2026 at 9:38 pm

    Yes this is very much possible. You will only have to deal with how would like to send the URL back after creating the pre signed URL. Maybe as XML or as plain text..

    I would recommend using the jets3t library to create the URL. You could call this API:

    org.jets3t.service.S3Service.createSignedPutUrl(String, String, Map, Date, boolean)

    You could also an IAM policy instead. But your way is easier.

    Edit: Added more information..

    That’s the beauty of it, when you are using the jets3t library you dont need to any of that.
    Just call the method :

     S3Service s3Service = new RestS3Service(awsCredentials);
    // Create a signed HTTP PUT URL valid for 5 minutes.
       String putUrl = s3Service.createSignedPutUrl(bucket.getName(), object.getKey(),
            object.getMetadataMap(), expiryDate, false);
    

    And use the URL to upload your image like below:

    SignedUrlHandler signedUrlHandler = new RestS3Service(null);
    S3Object object = new S3Object(bucket,<your file object goes here>);
     S3Object putObject = signedUrlHandler.putObjectWithSignedUrl(putUrl, object);
    

    Edit for signedGetURL():

    Only the ones with ProviderCredential being passed in are deprecated.. This one is not :

    http://jets3t.s3.amazonaws.com/api/org/jets3t/service/S3Service.html#createSignedGetUrl(java.lang.String, java.lang.String, java.util.Date)

    You wouldnt need to pass the credentials into this method anyway. Its only the s3service object that needs the credentials.. like this…

    S3Service s3service=new RestS3Service(credentials); // pass your credentials here
    String createSignedGetUrl = s3service.createSignedGetUrl(storageObject.getBucketName(),
        storageObject.getKey(),new DateTime().plusMinutes(5).toDate());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone successfully done this? Trying to replicate functionality similar to what is found
Has anyone done this successfully? As I understand, GDI+ 1.1 only ships with Vista.
Has anyone done this or attempted to do this for a preexisting project? It
Has anyone successfully mapped a numeric array in PostgreSQL to a numeric array in
Has anyone successfully used Tokyo Cabinet / Tokyo Tyrant with large datasets? I am
Has anyone using .net actually worked out how to successfully sign a signature to
I'm just curious to know if anyone has used (successfully) Fusion Charts with Open
Has anyone else had this issue and found a working solution? I've enabled the
Has anyone had this problem? I deleted a column in the table editor and
Has anyone used primefaces data exporter component successfully with primefaces datatable with dynamic columns?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.