Forum: Ruby on Rails send_data and ie

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
86d03e22c00011cea78af5e7a26bd9db?d=identicon&s=25 Kris Kohlstedt (kkohlstedt)
on 2007-07-24 06:13
Has anyone else had trouble using send_data with internet explorer.  As
usual things were working fine in firefox and safari until I tested in
IE :).

With the following code I'm seeing an image show up in firefox but the
"X" indicating no image found in IE.  Any ideas?

@image_data = Image.find(:all, :conditions=>{:url =>
@image = @image_data[0].image
send_data (@image, :type => "image/jpeg",
                   :filename => "foo.jpg",
                   :disposition => 'inline')
This topic is locked and can not be replied to.