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: Intermediate:
Problem downloading video files to QuickTime

 



tedkurtz
New User

May 4, 2009, 11:34 AM

Post #1 of 3 (391 views)
Problem downloading video files to QuickTime Can't Post

Hello,

I am trying to write PERL cgi code to download QuickTime (.MOV) video files created by digital cameras. The following is a stripped-down version of the code I'm trying to use.


Code
#!/usr/bin/perl -w 
#use strict;
use CGI ':standard';
use CGI::Carp qw(fatalsToBrowser);
use Fcntl qw(:flock);


##################################################
my $sourcefile =

'/home/content/t/e/d/tedkurtz/html/Results/MVI_0008.mov';

##################################################
print header(-type => 'video/quicktime');
open(DATAFILE,"$sourcefile") || Error('Open', "$sourcefile");
binmode STDOUT;
binmode DATAFILE;
print <DATAFILE>;
close(DATAFILE);


You can see how this code runs by clicking on the following URL:

http://www.nanandted.com/cgi-bin/safaridownloader.cgi

It looks like QuickTime does something. I have tried it with Firefox and

Internet Explorer, and I believe it does not work in either one. I am usins Windows XP Home Edition. Any help would be very much appreciated.

Thank you.

Ted


(This post was edited by tedkurtz on May 4, 2009, 11:41 AM)


KevinR
Veteran


May 4, 2009, 2:08 PM

Post #2 of 3 (386 views)
Re: [tedkurtz] Problem downloading video files to QuickTime [In reply to] Can't Post

See if this articel helps you:

http://bytes.com/topic/perl/insights/857373-how-make-file-download-script-perl
-------------------------------------------------


tedkurtz
New User

May 5, 2009, 1:44 PM

Post #3 of 3 (367 views)
Re: [tedkurtz] Problem downloading video files to QuickTime [In reply to] Can't Post

Thank you. That worked! I greatly appreciate your help.

Regards,

Ted

 
 


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

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