JPEG issues

Bijan Parsia bparsia at email.unc.edu
Thu Dec 20 01:27:16 UTC 2001


On Wed, 19 Dec 2001, jmvuletich at uolsinectis.com.ar wrote:

> Hi Andrew.
> 
> If you inpect
> 
> (HTTPSocket httpGet:
> 'http://www.movietickets.com/photos/00727201.jpg') contents
> 
> you get the html for an error page. The same happens if you try to
> give this url to Scamper. It's not a JPEGReadWriter issue, its an HTTP
> problem.

No, it is a JPEGReadWriter issue. As I wrote earlier, Scamper fails due (I
suspect) to a content negotitation issue.

Now I've not been able to actually determine if the file is, in fact, a
legal JPEG file. I don't think it contains *any* 16rFFs, which, I think,
means that it has no headers?

I *suspect* that it's a progressive JPEG of some sort, but finding and
navigating the JPEG specs is, for me, thus far, an exercise in futitily.

> I can't help with that...

If you do it Andrew's way, you should actually get the stream. Indeed, you
should get a walkback because 'JFIF marker expected'. Well, niether is the
SOI or the A one.

If it's any clue, the start of the retrieved collection is:

a ByteArray(60 33 68 79 67 84 89 80 69 32 72 84 77 76 32 80 85 66 76 73 67
32 34 45 47 47 87 51 67 47 47 68 84 68 32 72 84 77 76 32 51 46 50 32 70
105 110 97 108 47 47 69 78 34 62 13 10 60 104 116 109 108 32 100 105 114
61 108 116 114 62 13 10 13 10 60 104 101 97 100 62 13 10 60 115 116 121
108 101 62 13 10 97 58 108 105 110 107 9 9 9 123 102...)

I could send the whole thing, but you should be able to fetch it too ;)

Cheers,
Bijan Parsia.





More information about the Squeak-dev mailing list