CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
print a file to stdout in cgi with resume support

 



hostage
Novice

Mar 12, 2012, 11:58 AM

Post #1 of 1 (3366 views)
print a file to stdout in cgi with resume support Can't Post

Hello ,

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 ???

thanks
hostage


(This post was edited by hostage on Mar 12, 2012, 12:01 PM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives