Check the file for a known header. (Info from link also mentioned in this answer)
The first eight bytes of a PNG file always contain the following (decimal) values: 137 80 78 71 13 10 26 10
More Related Contents:
- Free file locked by new Bitmap(filePath)
- Should I store my images in the database or folders? [duplicate]
- How to use httpwebrequest to pull image from website to local file
- Image file copy, is being used by another process
- Delete a file being used by another process
- Open existing file, append a single line
- Notification when a file changes?
- Convert webpage to image from ASP.NET
- Mirroring console output to a file
- how to read all files inside particular folder
- Why does Path.Combine not properly concatenate filenames that start with Path.DirectorySeparatorChar?
- How can I read/stream a file without loading the entire file into memory?
- How to check if a file exists in a folder?
- Detect if PDF file is correct (header PDF) [closed]
- How to remove a single Attribute (e.g. ReadOnly) from a File?
- Adding elements to an xml file in C#
- Combine two Images into one new Image
- Check if an executable exists in the Windows path
- open file in exclusive mode in C#
- Display an Image in a console application
- C# – Loading an indexed color image file correctly
- How do I programmatically save an image from a URL?
- Cannot find the memory leak
- How to insert an image into an Access OLE field via .NET
- Unity load medias from folder and display on RawImage
- Graphics on indexed image
- C#: How to open Windows Explorer windows with a number of files selected
- Sharpen on a Bitmap using C#
- How to rotate image x degrees in c#?
- Why does System.IO.File.Exists(string path) return false?