views:

106

answers:

1

Hey guys;

I have a url which leads to in image. How do i grab this image from this url into my servlet? NOTE: the web-app is deployed on google app engine.

java.net.URL myURL = "http://a3.twimg.com/profile_images/150131301/slogo4_normal.jpg";
//code to grab the image

Thank you

+1  A: 

Use the URL Fetch API - either the java.net one, or the low level one, both documented here.

Nick Johnson