Displaying 1 result from an estimated 1 matches for "scaledkid".
Did you mean:
scaledkids
2008 Apr 15
4
trouble streaming images with send_data
...iFiltered,
"jpeg", os)
rescue
$stderr.print "Couldn''t write file"
end
if isWritten
send_data "os.toByteArray", :type => "image/
jpeg", :disposition => "inline", :filename => "scaledkids.jpg"
end
end
And then in the HTML file, I just point to the sendImage action from
an img tag.
Does anyone have advice on this? Should I not use the
ByteArrayOutputSteam. It seems that others have used this without
problems.
Thanks.
JB
--~--~---------~--~----~------------~-------~--~----...