Recover DMG files that was corrupted after resizing

I have done dmg resize to my .dmg file since my image is bigger than my dvd in which I want to burn it. However, some errors occur and my .dmg file is now corrupted. Can anyone explain to me why something like that happens and how can I retrieve my files?
