If the image is in a disk file, just open it and read the length property. You
will probably need to open it anyway to verify it is a JPEG or TIFF or
whatever.
-Paul
On Tuesday, March 31, 2009, at 07:47AM, "The Green Tea Leaf"
<thegreentealeaf@gmail.com> wrote:
>>
>> It's probably not best in terms of efficiency, though. If you know your
>> images will be large and of a specific format, then you might want to
>> download just the first so-many bytes and parse the image header to get the
>> size.
>>
>
>Yes, this is my main concern since they can be quite large some of them ...
>hmmm, parsing the header doesn't seem like a bad idea especially since they
>all will be jpeg files ... off to look for some documents for the jpeg
>standard
>--
>The Green Tea Leaf thegreentealeaf@gmail.com
>thegreentealeaf.blogspot.com
>_______________________________________________
>Unsubscribe or switch delivery mode:
><http://www.realsoftware.com/support/listmanager/>
>
>Search the archives:
><http://support.realsoftware.com/listarchives/lists.html>
>
>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|