You are looking at historical revision 1018 of this page. It may differ significantly from its current revision.

Introduction

The stream-base64 egg allows you to encode and decode streams of bytes in base64.

Examples

Encoding a stream

(use stream-base64)

; Encode everything from current-input-port and write it:
(write-stream
  (base64-encode
    (port->stream
      (current-input-port))))

Decoding a stream

(use stream-base64)

; Decode everything from current-input-port and write it:
(write-stream
  (base64-decode
    (port->stream
      (current-input-port))))