如何从网址显示图片?

时间:2012-11-07 22:38:21

标签: image url smalltalk

如何在visualworks smalltalk中执行此操作?

1 个答案:

答案 0 :(得分:1)

问题解决了:

|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.