Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0007777 [Squeak] Network minor always 07-12-13 22:15 07-12-13 22:15
Reporter tim View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.4
  Product Build
Summary 0007777: HTTPSocket httpJpeg: & httpGif: use archaic api for image decoding
Description HTTPSocket methods httpGif: & httpJpeg: seem to use rather archaic messages to get the images decoded.

I suspect that it would be cleaner to replace
httpJpeg: url
    "Fetch the given URL, parse it using the JPEG reader, and return the resulting Form."

    | doc ggg |
    doc := self httpGet: url.
    doc binary; reset.
    (ggg := JPEGReadWriter new) setStream: doc.
    ^ ggg nextImage.

with something more like
httpJpeg: url
    "Fetch the given URL, parse it using the JPEG reader, and return the resulting Form."

    | doc |
    doc := self httpGet: url.
    doc binary; reset.
    (ImageReadWriter formFromStream: doc) nextImage.

for example
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
07-12-13 22:15 tim New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker