This question already has an answer here: How to retrieve ... Here's some sample code for that. ...
stackoverflow.com