logo       

Re: String asURI contentStream - troubles: msg#00117

lang.smalltalk.squeak.beginners

Subject: Re: String asURI contentStream - troubles

Thanks, pf

On 24.1.2008, at 0:26, Hexamorph wrote:

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

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Beginners mailing list
Beginners@xxxxxxxxxxxxxxxxxxxxxxxxxx
http://lists.squeakfoundation.org/mailman/listinfo/beginners
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise