logo       

Re: String asURI contentStream - troubles: msg#00116

lang.smalltalk.squeak.beginners

Subject: Re: String asURI contentStream - troubles

Petr Fischer wrote:
Hi,

I need to get stream from general (user entered) URI.

1) 'file:///Users/pf/Documents' asURI contentStream - this works (instance of StandardFileStream)

2) 'http://www.seznam.cz/' asURI contentStream - error (MessageNotUnderstood: HTTPClient class>>contentStreamForURI:)

I need one way (method) for all types of URIs (http, file, ftp...).

Any ideas? Thanks, pf

Hi!
I'm quite new to Squeak/Smalltalk (and totally fresh to this list), so I might be wrong.

Maybe this is what you want:

'theURLString' asUrl retrieveContents contentStream


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise