i'm trying to send a file to stdout using cgi and i have the code below :

Code

#!/usr/bin/perl -w

use CGI qw(:all);

$| = 1;

print header( -type => 'image/jpeg' );

open ( FILE , "files/01.jpg" ) or die "$!";

binmode STDOUT; binmode FILE; print <FILE>; close(FILE);

exit;

now my problem is when i want to get this file ( image in this code ) it don't have resume ability when it's going to be downloaded with a download manager how can i change this code so it would have resume ability ???