For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > January 2005 > Dealing with Binary/PDF files.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Dealing with Binary/PDF files.
awolff01

2005-01-13, 5:49 pm

Hi There,

We have an existing cgi script that can convert a text file to pdf. I want to write an perl script to mimic making an http call to the cgi script and then taking the PDF file that it returns and saving it someplace as a file or e-mailing it.

The question is once I execute my http call via:
$res = $ua->request($req)


How do I take what is in $res (which will be the binary representation of the PDF file) and manipulate it?

Thank You!!!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com