J
Jaap
I too am new to Ruby, but i love it! Two questions though:
1. I read and printed a png image from disk and printed it to the
browser but it doesnt't work:
print "Content-type: image/png\n\n"
file = File.new(imagePath, 'r')
content = ''
file.each_line {|line| content += line }
file.close
print content
Could this have anything to do with binary mode? How could i get this to
work?
2. What is the forum/community site where most Ruby experts hang out?
Like Perl has perlmonks.org
Thanks in advance,
Teun van Eijsden
The Netherlands
1. I read and printed a png image from disk and printed it to the
browser but it doesnt't work:
print "Content-type: image/png\n\n"
file = File.new(imagePath, 'r')
content = ''
file.each_line {|line| content += line }
file.close
print content
Could this have anything to do with binary mode? How could i get this to
work?
2. What is the forum/community site where most Ruby experts hang out?
Like Perl has perlmonks.org
Thanks in advance,
Teun van Eijsden
The Netherlands