Hi Jim,
You should do 1 in any case :)
Point 2 is not so hard. Just download the file with HttpClient or the
like. While you're reading from the stream you have to count bytes. Put
this in a IValidator and attach it to the imageUrl textbox.
If you go for point 3 then note that not all types of images can be
converted by the java imaging library. In particular CYMK jpgs and tiff
files are troublesome.
Regards,
Erik.
Jim Pinkham wrote:
> I had a few ideas:
>
> 1. a note on the item entry page asking users to 'please don't do that'. :)
> 2. add an ImageURLValidator to check the image size.... somehow... hmmm...
> 3. find some utility to help read the image, properly size it, and
> store a local copy with my own id (filesystem should work fine)
> and let my model's imageURL property point to it.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...