pointman:foreach (System.IO.FileInfo fil in new System.IO.DirectoryInfo(path).GetFiles("*.*"))
as the above post suggested..
[1] pls check that image may get corrupted- (you can try openning image in default image viewer and check whether its openning correctly)
also there are other possibilities you can check :
[1] image not in use
[2] as you are getting the file with - .GetFiles("*.*")) - quite possible that there might be other files exists in the same folder other than image type (for example Thembs.db) and causing the problem
[3] check that proper path of the file are getting in the code..
hope it helps./.
नमस्ते,
[KaushaL
] ||
BloG ||
MS MVP"I would love to change the world, but they won’t give me the source code"
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.