Change from attachment_fu db BLOB to Paperclip S3


I have moved from using attachment_fu with files stored in the DB to
Paperclip using S3. The trick now is to migrate the files from the DB
to S3.

I have tried a few methods like:

SThreeFile.create(:file =>


@attachment = AttachmentFuFile.first
SThreeFile.create(:file => ActionController::Streaming.send_data, :filename =>, :type =>

The first gives lots of output to the console but doesn't produce and
results. The second gives:
NoMethodError: undefined method `send_data' for

Can anyone point me in the right direction?