I need to save image from RAW_POST_DATA

I load an image with FLASH-module.
So, it comes to the server as RAW_POST_DATA
I need to save it in many sizes.

When I loaded images in attach I used "paperclip". But I think, that
in current situation "paperclip" and it's "has_attached_file" is not
suitable.