Get Extension in Bytea Type

------=_Part_136630_22428073.1180380832275
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

Help Please!

Thanks!

------=_Part_136630_22428073.1180380832275
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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..<br><br>Help Please!<br><br>
Thanks!<br>

------=_Part_136630_22428073.1180380832275--
JUNIOR [ Mo, 28 Mai 2007 21:33 ] [ ID #1724431 ]

Re: Get Extension in Bytea Type

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
dmagick [ Di, 29 Mai 2007 02:18 ] [ ID #1725072 ]
Datenbanken » gmane.comp.db.postgresql.php » Get Extension in Bytea Type

Vorheriges Thema: [newbie] How to do "batch insert"?
Nächstes Thema: Data Type for "flags"