When return binary data directly from the handler everything works fine. The problem now is when I try to upload an image to some site using drakma:http-request, one of the arguments to the http-request (post request) I supply a closure which is a function of one argument (stream) which sends data to that stream. The problem is that when I upload an image this way, the receiving server also gets corrupted data. I think we need to fix this problem. Using (send-headers) is a clean way to reproduce the problem in Weblocks. Does it only happen on my system, or someone can reproduce it as well?
On Thu, Feb 26, 2009 at 8:19 AM, Leslie P. Polzer <[email protected]> wrote: > >> If I set content-type to application/octet-stream the web-browser >> instead of showing an image asks me to save a file to the disk. > > Sure, but can you do the Drakma check again? > > >> As you can see I send an image to stream, yes the handler gets called. >> I wonder why some conversion happens? I'll try to return a binary >> array from the function. > > Why do you try to write into the headers stream? > > Can you try returning the data directly from the handler? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
