How Determining the type of file through header info. I want to be able to read a files header and say thats a jpg, gif, png etc... Even if the file name is something else then name.jpg or name.gif
Announcement
Collapse
No announcement yet.
Read File Headers
Collapse
X
-
Michael Mattias
Tal Systems (retired)
Port Washington WI USA
[email protected]
http://www.talsystems.com
-
-
Hi,
you can open a file in binary read only and read the bytes you need.
Here you can find a lot of file format definitions:
http://www.wotsit.org/
Comment
-
-
do you want to know how to open a file binery ?
Code:nH = freefile open cFilename FOR binary ACCESS read AS #nH GET$ # nH, 100,cString close # nH
Comment
-
Comment