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 =>
'attachment')
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.