I have a URL of an image as a String.
String url = "http://blog.room34.com/wp-content/uploads/underdog/logo.thumbnail.png"
I want create a FileHostOject from that. (org.jaggeryjs.hostobjects.file.FileHostObject).
Can anyone tell me how can I achieve that?
You can use java lib "Apache Commons IO" to do it:
My Simple Code:
Class "IOUtils" is a common tool for IO stream operation in commons-io jar.