Saving images



Hi,

How can I use the StreamInput and the StreamOutput classes in order to save images from an URL to the user directory?

suppose I have:
URL imageURL = getURL(image);

.........?


thanks,]

Marcelo
.