I need to pull an image from a URL (I have permission) that is a .jpg. I know I need to set the content-type to 'image/jpeg', but not sure where to do that at.
result = Net::HTTP.get_response(URI.parse('http:// link_to_image.jpg') ) result.body => gives me encoded junk. Looking for help on how to set the content-type so I can display the image. Thanks in advance. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.