[vwnc] base 64 encoded streams & atEnd

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] base 64 encoded streams & atEnd

kobetic
The DecodedStream version should work better. You get it the same way just send withEncoding: to the String instead of turning it to ByteArray first.

        ('/w==' withEncoding: #base64) readStream upToEnd

HTH,

Martin
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] base 64 encoded streams & atEnd

Holger Kleinsorgen-4
[hidden email] schrieb:
> The DecodedStream version should work better. You get it the same way just send withEncoding: to the String instead of turning it to ByteArray first.
>
> ('/w==' withEncoding: #base64) readStream upToEnd
>

I haven't used this because it only works correctly in 7.7:
in 7.7, it returns #[255] (as expected).
in 7.6, it returns #[76 51 99 57].
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc