Re: Get Extension in Bytea Type

Chris <[email protected]>
Newsgroups gmane.comp.db.postgresql.php
Message-ID <[email protected]>
Junior wrote:
> Hi, I need get the extension in bytea type, my web system save in 
> database one file, the file can be many extensions, i need get de 
> extension from this file for the users can download this file..

If you're not saving the filename you'll have to resort to saving the 
file & then using something like:

exec('file /path/to/file', $out);
print_r($out);


to work it out.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.