Subject Re: Problem in retrieving BLOB data
Author bala_karat
--- In firebird-php@yahoogroups.com, Lester Caine <lester@...> wrote:
> > 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");

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).

Best regards,
Bala