>That would work - however ideally I'd want to skip the first
>six bytes and
>read in the next two. And in some cases I `may not know how
>many bytes I
>need to skip - in the case of a jpeg I need to read in lots of
>data or skip
>lots of data.
Does the markSupported() return true ? Probably not if it's a 'live' stream
from a web page form.
Have you tried creating a PushbackInputStream from the InputStream ?
Also if you're skipping around, trying to find the image size for JPEG's
(GIF is, as you now know the easy one ;-) you should also know how much
you've currently ready to be able to write that out, then continue with the
rest of the original stream.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html