[Newbies] String asURI contentStream - troubles

Petr Fischer petr.fischer at praguesoft.cz
Wed Jan 23 23:47:09 UTC 2008


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 at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2435 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/beginners/attachments/20080124/c39d18de/smime-0001.bin


More information about the Beginners mailing list