Subject | Re: [firebird-php] Re: Problem in retrieving BLOB data |
---|---|
Author | Lester Caine |
Post date | 2009-06-02T13:29:31Z |
bala_karat wrote:
and because you do not have a 'viewer' for text files they have to be
downloaded, but I presume that the pdf is actually being displayed
within the browser? So you have a plugin to display pdf files loaded
which means that the file does not have to be downloaded.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
> --- In firebird-php@yahoogroups.com, Lester Caine <lester@...> wrote:This is simply debugging what PHP is doing ....
>>> Yes, I just now downloaded 0.9.2 and found the 'import blob from file' menu. I downloaded a text file (to sub type 1 field) and found PHP can access it. But I found all spaces and <cr><lf> characters are lost. Hope it is because of the echo function?
>> I'm not having a problem. Try print_r(); on the data array ... That
>> should show the raw content.
>>
> print_r() and echo behaves the same way till the following stmt is added:
> header("Content-Type: application/text");OK what you are doing now is telling the browser to display the content,
>
> But with this stmt added, system always comes with the 'file download' window and I have to save the file and then display. The display is fine now (Pl note, 'file download' window doesn't come for pdf).
and because you do not have a 'viewer' for text files they have to be
downloaded, but I presume that the pdf is actually being displayed
within the browser? So you have a plugin to display pdf files loaded
which means that the file does not have to be downloaded.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php