If documents are stored in RVF format, images are stored using graphic.SaveToStream and LoadFromStream methods. So the problem should be in the graphic class used for this picture.
Or do you use RTF?
What happens is. Someone external are creating a rvf file using the ActionTestD2007 from you Demos. In this file are some jpg images.
In the application I'm updating this file is been shown in a RichviewEdit. I have debugged an came to a point where I got this error message:
"Poject ef33.exe raised exception Class EJEG with message 'JPEG error #68'."
This error comes in the RVItem.pas in the Procedure DrawImage at the line "Canvas,Draw(x, y, Image);"
Can someone give me a direction to for this error?
jp wrote:
In the application I'm updating this file is been shown in a RichviewEdit. I have debugged an came to a point where I got this error message:
"Poject ef33.exe raised exception Class EJEG with message 'JPEG error #68'."
This error comes in the RVItem.pas in the Procedure DrawImage at the line "Canvas,Draw(x, y, Image);"
Can someone give me a direction to for this error?
It's something wrong with TJPEGImage, unfortunately I do not know what to do with it.
TRichView only stores images using their SaveToStream/LoadFromStream methods, and draws using Canvas.Draw and Canvas.StertchDraw...
I have found the reason for this behavior. I was copying a part out of a stream on basis of an token and this token was also found in the binary from the jpeg