title: How do I fetch images of the internet in FXRuby?
body: <p>so let me preface this with the fact that I am a beginner at ruby and FXruby. I would like to know how I can fetch images by using a URL. This is the code I used when getting them off my desktop:</p>
  
  <pre><code>require 'rubygems'
  
  require 'fox16'
  
  include Fox
  
  
  class Image_Viewer &lt;FXMainWindow
    def initialize(app)
      super(app, "Image Viewer", :opts =&gt; DECOR_ALL, :width =&gt; 500, :height =&gt; 450) 
      @pic = File.open("/Users/AdamAshwal/Desktop/image.jpg", "rb")
      @pic2 = FXJPGImage.new(app, @pic.read)
      FXImageFrame.new(self, @pic2)
  
  end 
    def create
      super
      self.show(PLACEMENT_SCREEN)
  end
  
  end
  
  
  app = FXApp.new
  mainwin = Image_Viewer.new(app)
  
  app.create
  app.run
  </code></pre>