On Mon, 20 Oct 2008, Devyn Cairns wrote:

> I don't think anyone heard me the first time...

AFAIK, no there isn't, but you could write the string to a tempfile
   require 'tempfile'

   tempfile = Tempfile.new("image")
   tempfile.close
   open(tempfile.path,"w") do |f|
     ...#scribble your string in here
   end
   tempfile.close
   image tempfile.path
   tempfile.unlink

for some completely untested code.

Possibly you can replace the close...open()do...end with just
tempfile.puts -- you can tell I don't use this often.

        Hugh
> 
> 
> ---------- Forwarded message ----------
> From: Devyn Cairns <[EMAIL PROTECTED]>
> Date: Sat, Oct 18, 2008 at 2:04 PM
> Subject: Ways to load images
> To: [email protected]
> 
> 
> Hi all,
> Is there any way to load an image from a byte string and specify the format?
> I need to for a network-enabled shoes project I'm working on... It's
> gonna be HUGE!
> 

Reply via email to