Microsoft KB Archive/197321

= PRB: "Invalid File Format" from ImgEdt Reading Sony Mavica JPG =

Article ID: 197321

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition

-



This article was previously published under Q197321



SYMPTOMS
Microsoft Internet Explorer 5.0 and other image programs allow you to successfully view .jpg files that were created using a Sony Digital Camera However, you may receive the following errors if you attempt to use the file in Visual Basic:

Run-time Error 321, Invalid File Format; Unable to display image when using ImgEdit OCX provided within the Wang Imaging Controls suite with Windows 95 or Windows NT 4.0.

-or-

Run-time Error 75, Path/File Access Error; Unable to read or write the specified file; Unable to display image within the Kodak Imaging Controls suite with Windows 98 or Windows Me.



CAUSE
The following paragraph is from the Eastman Software Web page:

The Sony Mavica Digital Camera generates .jpg files without the required "JFIF" string in the header. The JPEG standard states that an APP0 marker and "JFIF" string, together with the leading SOI marker, make up the header that identifies them as "standard" JPEG/JFIF files. Some applications just recognize the leading "FFD8" SOI marker and do not look for the "JFIF" stamp, thus allowing them to open a wider variety of JPEG files. The Wang Imaging Controls follow the specification, so if the JFIF string is missing, the current versions of Imaging raise an invalid file format error. This error is generated in both Imaging Professional as well as Imaging for Windows. Imaging Professional 2.0 does the more lax "FFD8" check, and so is able to read the Sony Mavica files.



RESOLUTION
Currently, the only workaround is to purchase Imaging Professional 2.0.

