I want to send binary data from a Sinatra application so that the user can download it as a file.
I tried using send_data
but it gives me an undefined method 'send_data'
How could I achieve this?
I could write the data to a file and then use send_file
but I would rather avoid doing this.