ruby - Rails get image from download link without saving image -


given download link:

http://files.parsetfss.com/54213c13-6c9c-4c87-ad62-b03471f4a879/tfss-17095044-922e-4b24-a361-2763f1981a13-profile.jpg

i'd display image link without having save file. use case display images links , there hundreds of links wouldn't feasible save each image disk.

change mime type image/jpeg. current content-type application/octet-stream says browser download file.

if have png have use mime type image/png. google "mime types" if have more file types.

but @gsp said, if want show image normal user better use <img> html tag embed website.


Comments