amazon s3 rails file download issue

I am trying to get a file from the amazon bucket but it says "string
contains null byte". any idea how to get the file to download like a
regular file? The file is there at the location.

f = Heypub.value @bucket
send_file( f , :type => "FileExtns[ext]['mime']", :disposition =>

Anyone? I can see the file contents in the log file if I

or this version is the same thing:

f = S3Object.value @bucket, 'mybucket'

Verify it the file is ok first by writing to the filesystem.

You may need to attempt to isolate the problem without much information.

I did, gives me the same error. no idea what could be the issue. seems like a send_file issue??

also are you using ?

the examples that it presents look similar to yours.

It gives you the same error?

I mean open a file and write it to the server. open(‘filename.png’,‘w’) do | etc.

If the above and send files gives you the same error s very likely that you are using the api mistaken and need to check your assumptions and understanding carefully.