bug-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-GIFT] Problem with gift-url-to-fts.pl


From: Pruet Boonma
Subject: [bug-GIFT] Problem with gift-url-to-fts.pl
Date: Thu, 1 Jul 2004 09:59:16 +0700

Dear All,

I'm working in a project with the GIFT, however, I've a problem with
one of my instrallation. The machine is stock Redhat9 with perl 5.8.0.
 The problem is, when I used gift-url-to-fts.pl to retrieve and
extract image feature from remote web server, I found that the
retrieved image file has incorrect format, especially on the header.
It makes me wonder because I've no problem with Debian in the other
machines. It seems to me that Perl doesn't write the retrieved image
to file system in the correct way.

So I browsed around the image using google and find a recommend that
we should use "binmode" command in Perl after open any binary stream.
I've know this issue before but only in Dos/Windows platform and it'd
do nothing in case of UNIX. Anyway, I add a line, binmode IMAGEFILE;, 
between open IMAGEFILE... and print IMAGEFILE ... in that file, and it
works.

I wonder that this is only my problem with my this only Redhat box,
anyway, just want to raise the problem in case that you want to make
the GIFT more portability :)

cheers,
pruet


-- 
Pruet Boonma
Department of Computer Engineering
Faculty of Engineering, Chiang Mai University
Thailand 50200
http://www.doc.eng.cmu.ac.th/~pruet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]