Re: How to check if uploaded file is binary or ascii?
- From: Marcin Dobrucki <Marcin.Dobrucki@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Aug 2006 09:01:26 GMT
veg_all@xxxxxxxxx wrote:
Chung Leong wrote:
Just look for \x00. Binary files would inevitable have it.
Thanks. Is there a way to do it without reading in the entire file to
memory?
On linux/unix you can call "file" on the uploaded file.
.
- References:
- How to check if uploaded file is binary or ascii?
- From: veg_all
- Re: How to check if uploaded file is binary or ascii?
- From: Chung Leong
- Re: How to check if uploaded file is binary or ascii?
- From: veg_all
- How to check if uploaded file is binary or ascii?
- Prev by Date: Re: connecting to a mssql database
- Next by Date: Re: Nested loops help please?
- Previous by thread: Re: How to check if uploaded file is binary or ascii?
- Next by thread: Re: How to check if uploaded file is binary or ascii?
- Index(es):