Aws Pictures

ImagePicturesAws image recognition

Jiffy lube emissions cost. The function then calls the listObjects method of the AWS.S3 service object to obtain a list of all the objects (photos) in the album. The rest of the function takes the list of objects (photos) from the album and generates the HTML needed to display the photos in the web page. My question is: can I please re-use pictures and graphics of specific AWS services, without breaching any copyrights? My final year project is based on AWS services, and am required to write up final report, presentation and project poster. I would like to display AWS logos and all related services graphics and architecture diagrams.

Where do I store images?
Posted on: Jul 23, 2011 7:27 AM
I am creating some tables in RDS, and several of the tables need to hold image info. Usually I would store the images in a folder on the server, then reference them in the DB. So how/where do I store my images in AWS, so I can pull them to my app through a query?
Replies: 6 Pages: 1 - Last Post: Jul 29, 2011 2:35 PM by: teahou
Re: Where do I store images?
Posted on: Jul 23, 2011 7:52 AM
Simple Storage Service (S3) is a good place to store your files. If you wish, S3 can serve files directly to your users or application through HTTP. Your files are stored in something called buckets. File URLs will look something like http://<bucket><file>. This information can be stored in the database. S3 can support both private and public files.
Re: Where do I store images?
Posted on: Jul 24, 2011 7:05 PM
Ok, so I set up a test bucket with some images in it. I then inserted the S3 URLs for the images, into a DB I have on RDS, using MySQl Query Builder:
<img src='<?php echo $content; ?>' alt='image' />
This worked better, but only showed the alt text 'image'.
So as you can see, I need to store the images in S3, store the urls in RDS, and call them with PHP to view the images. Please look over my code and let me know if see what the issue is. Also, if there is an easier way to do this, please let me know or send me a tutorial link.
Thank you.
Re: Where do I store images?
Posted on: Jul 24, 2011 11:40 PM
Haven't used PHP in years, but I believe your code looks fine. Someone else will probably chime in if I missed something. Using the img tag with the full file URL is what you want to do. That way, static file serving can be offloaded to S3. You are on the right track.
What does your table definition look like? And what are the values for each column in the row with pid 2?
Re: Where do I store images?
Posted on: Jul 25, 2011 8:01 AM
As this is just for testing purposes, I only have 2 columns for now. First is the pid - INT PK, and image_url - VARCHAR.
I have started suspecting the problem is with AWS security, because the URL to the image in S3 is an https, instead of just http and I think that is causeing the issue. I am currently looking into how to remove the secure http from my image bucket.
Edited by: teahou on Jul 25, 2011 8:01 AM
Re: Where do I store images?
Posted on: Jul 25, 2011 8:09 AM
And the pid is actually 2? You could remove the WHERE clause and see if you get any match then. Looks like you inserted NULL, but maybe you use auto increment? Your problem is most likely related to PHP or MySQL. As long as you are unable to get the file name from your database, S3 is not involved in any way.
Re: Where do I store images?
Posted on: Jul 29, 2011 2:35 PM
All my images are now in S3 and doing fine. thank you.
Reply to this Thread
Answered question
Unanswered question with answer points still available
Unanswered question
Ace: 2000+ pts
Expert: 750-1999 pts
Guide: 300-749 pts
Enthusiast: 50-299 pts
Newbie: 5-49 pts

Aws Image Hosting