Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 82911 invoked from network); 17 Aug 2007 04:21:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 04:21:53 -0000 Received: (qmail 54167 invoked by uid 500); 17 Aug 2007 04:21:42 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 54152 invoked by uid 500); 17 Aug 2007 04:21:42 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 54130 invoked by uid 99); 17 Aug 2007 04:21:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 21:21:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of manoj.bist1@gmail.com designates 66.249.82.238 as permitted sender) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 04:21:38 +0000 Received: by wx-out-0506.google.com with SMTP id i29so359565wxd for ; Thu, 16 Aug 2007 21:21:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=KOYUbsL061eC92wj1L7oCbB1tc/76NOH4ytN1gOuMekUHb1kPQPhK2FHtDSMrjVxyraNjfgKRiF+VE0x7R2bDSHhPauesE7143dd1ioLXetpuMYzky6U9Esa2HnAvQO0B9NWF32wCH52NBXaLSqUNJjKlafQIwXjE0DuKQ4uHYs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=rAnW9Q3k95Wu2r9JA2u/V114n82H/CWx4+9zmSFVaQ8GDVq5NdpJabFSMC8sxNVMZxeGdONQHjbUdHb6QHTBhM6UM/6IueWTUm4TgWzKgJYW0tq7JK1254HpGEd0Smnp+jrzVXNuVfbMGbceIe9n18Afo5/EUTImdzYyDqnJJaw= Received: by 10.70.115.17 with SMTP id n17mr4061563wxc.1187324476670; Thu, 16 Aug 2007 21:21:16 -0700 (PDT) Received: by 10.100.41.13 with HTTP; Thu, 16 Aug 2007 21:21:16 -0700 (PDT) Message-ID: <8ec3b7c10708162121v692177b3o19e0e9e331097ff0@mail.gmail.com> Date: Thu, 16 Aug 2007 21:21:16 -0700 From: "Manoj Bist" To: modperl@perl.apache.org Subject: modperl and fprintf(stdout,...) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_86456_9067278.1187324476617" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_86456_9067278.1187324476617 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I would really appreciate if someone could answer the following question regarding modperl and writing to stdout for me: I have a perl binding for a C library which generates binary(audio/video) data. To push this binary data over an HTTP response, fprintf(stdout,...) does not work in context of modperl. Do I have to copy the binary data to a perl scalar variable and then do $r->print(...) in the perl script? Please do let me know if I need to provide more details. Thanks, Manoj. ------=_Part_86456_9067278.1187324476617 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I would really appreciate if someone could answer the following question regarding modperl and writing to stdout for me:

I have a perl binding for a C library which generates binary(audio/video) data.  To push this binary data over an HTTP response, fprintf(stdout,...) does not work in context of modperl.
Do I have to copy the binary data to a perl scalar variable and then do $r->print(...) in the perl script?

Please do let me know if I need to provide more details.

Thanks,

Manoj.


------=_Part_86456_9067278.1187324476617--