LEADTOOLS Support
Imaging
Imaging SDK Questions
Cannot load PNG file - Stamp is present but data is corrupt
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 16, 2010 10:00:41 AM(UTC)
Groups: Registered
Posts: 25
Hi,
I'm having a hard time opening the attached PNG file in my VB6 project using the COM Interop dlls. I get the error "Stamp is present by data is corrupted." I've searched the help, but haven't found anything useful. What does this mean? How can I fix it?
For i = 1 To codecInfo.TotalPages
Dim riConvertedImage As New RasterImage
Set riConvertedImage = codecs.Load_10(mstrPathAndFileName, 0, CodecsLoadByteOrder_BgrOrGray, i, i)
origDPI = riConvertedImage.XResolution
etc.....
Next
Thanks,
-Kiima
LeadTools 16.5
VB6 (COM Interop) WinForms
#2
Posted
:
Monday, August 16, 2010 10:02:45 AM(UTC)
Groups: Registered
Posts: 25
I should probably mention that I can open the file using the VB.NET demo.
#3
Posted
:
Tuesday, August 17, 2010 12:01:34 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Kiima,
I tried to load your PNG file in a small VB6 project that uses LEADTOOLS v16.5 COM interop and it did not generate the error message you are getting. In my code I only loaded your PNG file and saved it to JPEG format and it worked.
If the problem is in your own code, please isolate it in a very small working project (NOT your full application) and send me this project in a ZIP or RAR file so I can check it for you.
I'm using LEADTOOLS v16.5 latest patches released on July 23rd. If you are using older DLLs, please send an email to
support@leadtools.com and mention this forum post in the email.
#4
Posted
:
Friday, August 20, 2010 9:30:00 AM(UTC)
Groups: Registered
Posts: 25
Once I updated the .dlls for that project, everything worked great. Thanks!
LEADTOOLS Support
Imaging
Imaging SDK Questions
Cannot load PNG file - Stamp is present but data is corrupt
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.