PC Review


Reply
Thread Tools Rate Thread

Detecting corrupt jpg images in C#

 
 
Fredo
Guest
Posts: n/a
 
      19th Jul 2006
I have an app that I'm writing to manage jpgs. Sometimes the photos are
corrupt. If I use something like ACDSee, it will show the image, but it will
have a note in the status bar that the image is corrupt, and it says,
specifically, "The source datastream is corrupt."

I'd like to be able to detect this as well with C#, but the Image.FromFile()
method returns the image and I can't see any way to determine if it's
corrupt. Is this simply not doable with the .NET framework?

Pete


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
corrupt images =?Utf-8?B?TGlzYUI=?= Windows XP Photos 6 21st Jun 2007 05:58 PM
jpeg images corrupt =?Utf-8?B?ZGF2ZSBtY2dyYXRo?= Windows XP Photos 0 29th Mar 2006 02:36 PM
Corrupt digital images loafer Digital Imaging and Photography 4 5th Feb 2006 07:54 PM
Detecting Corrupt .Tiff Files =?Utf-8?B?QnJpYW4=?= Microsoft Dot NET Framework 0 26th May 2005 01:13 PM
Images appear corrupt or almost black Mike Windows XP General 1 7th Nov 2003 02:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:43 AM.