C# code to find out corrupt images in a SQL Server database which are stored as BLOBs.
Read this post on troubleshootingsql.com