X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8F745D72CA for ; Tue, 11 Oct 2005 14:56:42 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14661-08 for ; Tue, 11 Oct 2005 17:56:40 +0000 (GMT) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.193]) by svr1.postgresql.org (Postfix) with ESMTP id AC1ACD72B6 for ; Tue, 11 Oct 2005 14:56:40 -0300 (ADT) Received: by qproxy.gmail.com with SMTP id v28so1591796qbe for ; Tue, 11 Oct 2005 10:56:41 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JN1//6+VSYNphivv/cQNHtc+yEu/HdeCqfhe63PIEteg332F6I/f5wOtLFPqQxGEkjyFWZu0Q+vLOn4JFxneOoKdrccn6+xPE1Zbancjzn7UcFReYc+Bfuez4DDk1n+g+X/z8/kHHPgRNJs4IYK2uvskpEfcYGPlH5vUJrxGgzI= Received: by 10.65.138.20 with SMTP id q20mr4071915qbn; Tue, 11 Oct 2005 10:56:41 -0700 (PDT) Received: by 10.65.115.7 with HTTP; Tue, 11 Oct 2005 10:56:41 -0700 (PDT) Message-ID: <7104a7370510111056od33ec48kda9c0babe3d36d06@mail.gmail.com> Date: Tue, 11 Oct 2005 20:56:41 +0300 From: Volkan YAZICI To: Adam Witney Subject: Re: Automatically opening pdf files stored in a bytea field Cc: pgsql-php In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.343 required=5 tests=[AWL=-0.513, RCVD_BY_IP=0.024, RCVD_IN_BL_SPAMCOP_NET=1.832] X-Spam-Level: * X-Archive-Number: 200510/17 X-Sequence-Number: 3285 Hi, On 10/11/05, Adam Witney wrote: > I have PDF files stored in a bytea field in the database and I want to al= l > the user to click a link on the web page and have the file automatically > opened in acrobat (or whatever they have set to read the pdf). Look at header() function's manual page [1] for PDF files. You'll see lots of IE related problems and their fixes there. [1] http://tr2.php.net/manual/en/function.header.php Regards.