Solved

What is JPEG error #52

Posted on 2000-04-06
6
1,441 Views
Last Modified: 2010-04-04

Does anyone have a list of these jpeg error numbers?  What is this? (Attempting to read and save jpegs).
0
Comment
Question by:jexd99
  • 3
  • 2
6 Comments
 

Author Comment

by:jexd99
ID: 2691896
D3 / Win98
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 50 total points
ID: 2692308
hi jexd99,

from borland

--- paste begin
Interpreting Cryptic Jpeg Error Number's
By Corbin Dunn

If you have used the TJpegImage class you may be familiar with the "JPEG error #xx" error that comes up on occasion. You may want to know exactly what went wrong, and how to get more information based on that number.

Luckily, the TJpegImage pascal source is included on the Delphi CD. Looking at the source, you will notice that it is a wrapper around some C code. There is one particular file called "jerror.h" which contains an enumeration of error strings. Based on the offset in this enum, you can find out what a given error number means.

For ease of use, I converted the "jerror.h" file to pascal in the unit JpegErrors.pas. To use this unit, simply reference the string array cJpegErrors, passing a given error number to find the error string, such as:

      Label1.Caption := cJpegErrors[StrToInt(Edit1.Text)]
Note that the JpegErrors.pas unit was based on the Jpeg source that comes with Delphi 5. If the order of the error messages in "jerror.h" ever changes, the JpegErrors.pas will not by in sync with it and has to be updated.
--- paste end

get the jpeg_error.pas file and sample:

http://community.borland.com/article/images/20433/jpeg_errors.zip

hope this helps

meikl
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2692318
specially #52

cstrJERR_NO_SOI = 'Not a JPEG file: starts with 0x%02x 0x%02x';
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 3

Expert Comment

by:bryan7
ID: 2694290
listenning
0
 

Author Comment

by:jexd99
ID: 2706475
Go ahead and answer this and I'll grade you.

   
0
 

Author Comment

by:jexd99
ID: 2706476
Ignore that last message I left :)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question