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
a send_file issue??

On Sun, Jan 31, 2010 at 7:07 PM, Curtis S. <

also are you using ?

the examples that it presents look similar to yours.

On Sun, Jan 31, 2010 at 5:07 PM, Curtis S. <

It gives you the same error?

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs