[CentralOH] web.py

Greg Singer gacsinger at gmail.com
Tue Oct 21 18:28:54 CEST 2008


On Tue, Oct 21, 2008 at 10:56 AM, Mark Erbaugh <mark at microenh.com> wrote:
> Greg,
>
> Thanks. I already tried that and found that the binary data was messing
> up the file transfer.
>
> I think binary data can be sent, but it would require building mime
> headers and encoding the data stream.  Modifying httpserver.py was much
> easier.
>
> Maybe I should suggest to the developers the ability to add multiple
> static folders.
>
> Mark

Mark,

If you're running on Windows, you may need to open the file "rb" in
order to handle binary files properly. This is something that has bit
me in the past.

But I agree that simply modifying the module is much easier.

 - Greg


More information about the CentralOH mailing list