
My image handlers look approximately like: (defun image-handler () (no-cache) (setf (hunchentoot:content-type) "image/jpeg") (let ((stream (send-headers))) (with-image (new 100 100) (do-something-with-img new) (write-jpeg-to-stream stream :image new)))) Andrew On Wed, Sep 3, 2008 at 2:42 AM, Edi Weitz <edi@agharta.de> wrote:
On Tue, 2 Sep 2008 17:48:00 -0400, "Andrei Stebakov" <lispercat@gmail.com> wrote:
If I set global (setf *hunchentoot-default-external-format* (flex:make-external-format :utf-8 :eol-style :lf)) Then all my handlers which generate images will produce empty outputs.
How do your image handlers look like? They should return binary data and shouldn't be affected by the external format. _______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel