Share

Flow Loader & Virtual Information Output

Tracker: Bugs

5 netflow_graph.pl creates wrong .png images - ID: 711348
Last Update: Tracker Item Submitted ( bufalooo )

if the output mode default is text png files are created as
corrupted.

solution is forcing output mode to binary. So, inser
between every open and print commands " binmode
OUT;" command

example:

if ($customer_mode) {
open OUT,">$customer"."$table/$port.png";
} else {
open OUT,">$customer"."$ip/$table/$port.png";
}
binmode OUT;
print OUT $im->png;
close OUT;
}

see attaced file

Cheers Bufalooo.


Zdenek Juran ( bufalooo ) - 2003-03-28 14:04

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.