I'm displaying the image with the following code.
When I looked at IE (I checked 9,11), I could not see it well.
Is there a solution?
stat=File::stat filepath
send_filefilepath, :filename=>'image.png', :length=>stat.size, :disposition=>'inline'
It seems that you have not given the type (Content-Type), but is there a Content-Type that matches the content you are sending?For PNG, specify :type=>'image/png'
.
© 2024 OneMinuteCode. All rights reserved.