Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 3, the unsupported old release. You're almost certainly looking for [[/eggref/4/stream-base64|the CHICKEN 4 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-4.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[tags: eggs streams base64 parsing]] == stream-base64 [[toc:]] === Author Alejandro Forero Cuervo === Documentation The stream-base64 egg allows you to encode and decode streams of bytes in base64. <procedure>(base64-decode stream)</procedure> Returns a stream of characters with the contents of {{stream}} after decoding them. {{stream}} should be a stream of characters encoded in Base64. <procedure>(base64-encode stream)</procedure> Returns a stream of characters with the contents of {{stream}} encoded in Base64. === Examples ==== Encoding a stream <enscript highlight="scheme"> (use stream-base64) ; Encode everything from current-input-port and write it: (write-stream (base64-encode (port->stream (current-input-port)))) </enscript> ==== Decoding a stream <enscript highlight="scheme"> (use stream-base64) ; Decode everything from current-input-port and write it: (write-stream (base64-decode (port->stream (current-input-port)))) </enscript> === Changelog * 1.1 - added .setup script (felix) * 1.0 (r1578) - First public release. === License The Base64 egg for Chicken Scheme is in the public domain and may be reproduced or copied without permission from its author. Citation of the source is appreciated.
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 2 from 20?