I need get an image from a URL and display in a view. How can do this in Cincom Smalltalk? For example, I have this image URL:
http://news.bbcimg.co.uk/media/images/64001000/jpg/_64001280_63976026.jpg
And I wish display the image. I try:
|req content reader|
req := HttpRequest
get:'http://news.bbcimg.co.uk/media/images/64001000/jpg/_64001280_63976026.jpg' asURI.
content:=req execute.
reader := JPEGImageReader new.
reader from: content byteSource.
But it doesn't work. Cincom Smalltalk says:
Image incomplete or partially corrupted JFIF marker expected.
when I execute: JPEGImageReader>>parseFirstMarker
.