Sharagoz wrote:
> I dont know if it's related to the actual error message you are
> getting, but I believe your send_data call should look more like this:
> send_data(report.imagedata, :disposition => 'inline', :type => 'image/
> png', :filename => "graph.png")
> You are setting it to a GIF, and not setting the disposition to
> inline.

Sharagoz:

Thanks --

* I'd already set the disposition to inline (forgot to mention that, 
thanks).

* I tried setting the image type to image/png -- no change.  (I'd 
thought that png was a subset of gif, but I know now the acronym means 
"Png's Not Gif" :)

* This *may* be a Ruby 1.9.1 bug -- see 
https://rails.lighthouseapp.com/projects/8994/tickets/3941

* I now understand the :filename suggestion - thanks.

Anyway, still broken.  For now, I've worked around it using send_file 
instead.

- ff
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to