function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bhanu joshi 10Bhanu joshi 10 

Accessing photo with S3 bucket

I am trying to access a photo in S3 bucket using a signed url like below:
String url = 'https://'+BucketName+'.s3.amazonaws.com/'+filename+'?AWSAccessKeyId='+AccessKey+
   '&Expires='+Lexpires+'&Signature='+signed;
its works fine for me.
But how can i access a photo from inside a folder..
Structure is like :   S3--bucket(b1)--folder(f1)-img1.jpg
If iam using following url 
String url = 'https://'+BucketName+'/f1.s3.amazonaws.com/'+filename+'?AWSAccessKeyId='+AccessKey+
   '&Expires='+Lexpires+'&Signature='+signed;
Getting the error.
Please let me know how can i access the image inside a folder. I have give permission to user.