[racket] images from tcp

From: Danny Yoo (dyoo at hashcollision.org)
Date: Tue Apr 16 02:25:00 EDT 2013

When you say the term "encrypt", you are using a term in an unconventional way.

Traditionally, programmers use the word "serialize" when talking about
translating values to a byte stream.


It's unclear from your email what you precisely mean by "image".  For
the moment, I will assume that you mean "instance of bitmap%", where
bitmap% is

    http://docs.racket-lang.org/draw/bitmap_.html

If that's the case, use the save-file method method to serialize the
bitmap%, sending its bytes into an output port.

    http://docs.racket-lang.org/draw/bitmap_.html#%28meth._%28%28%28lib._racket%2Fdraw..rkt%29._bitmap~25%29._save-file%29%29


If you are not working with bitmap% instances, can you be more
descriptive of what data you are working with?

Posted on the users mailing list.