Copy an jpeg image and paste it into a text widget?

Hi all,

Now I play around with text widget in Ruby/Tk. I wonder if I can copy a
jpeg from clipboard and paste it into text widget then save/write it to
a file, just like copying text into text widget and write it into a
file.

I google the web and don’t see info on this topic.

Thanks in advance.