New Forum | Previous | Next | (P-PDF) Developers
Topic: CosNewStream for jpg file
Conf: (P-PDF) Developers, Msg: 89613
Date: 6/12/2003 06:08 AM
I am trying to call CosNewStream for a stream I am reading from a file, in order to add it as a graphical representation of a signature.
I had some tests with decoded data (such as Acrobat logo), and everything worked fine, I opened the file with ASFileSysOpenFile, then opened the stream with ASFileStmRdOpen, then I called to CosNewStream, with a flag saying the data is decoded. (and as said, it worked well).
I then tried to do the same with a jpg file. I know I need to pass the dictionary for the DCTDecode filter (attributesDict), but I am not sure I know all the fields I need to create, as well as what should I pass as "encodeParms".