LWP::Simple + getstore("url"); should be able to do that in a one-liner.
In reply to Re: Reading img file through URL by SuicideJunkie in thread Reading img file through URL by vit