Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

image  RSS feed

 
Esaki Raja
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to check the image from the internet for giving url..whether it comes or not ..is any method available for that
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66205
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If what you are asking is:

"Given a URL for an image on the Internet, how can I find out if it is valid?"

then there is no specific Servlet method to do this. There is, however, stuff in the java.net package that can help you. Check out URL and URLConnection. Or you might want to check out a 3rd party tool named HttpClient.

Since this is not a servlet issue, I've moved this to a more appropriate forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!