Main

June 30, 2007

Sending Images From Flex to a Server

Today's challenge has been to allow a Flex app to create images, and have the new images uploaded back to the server as a bitmap. The application is for a simple buddy-icon editing application: users can upload their photos, drag in bits of clip art, resize and so on, then use their generated buddy icon on the site. The same could be useful for doing basic image editing, uploading for print.

There are two issues. First is getting uploaded images into Flex. That's a topic for a future post (but basically you have to upload them to the server, then download them again).

The second is uploading a final image generated by Flex. And it turns out this is surprisingly easy.

Continue reading "Sending Images From Flex to a Server" »

June 29, 2007

Xml Generation Module

In all my apps I communicate client to server in XML. Flex has very nice XML processing capabilities through e4x. I typically generate only simple XML to send back to the server, where python's processing is fairly easy too.

The last link in the chain is getting Django to generate XML easily. I wrote a very simple xml generating module that might proove useful.

Continue reading "Xml Generation Module" »