Create a G3 fax image with an ASN.1 wrapper for ldap photo
Question
How can I create "An object encoded in G3 fax as explained in recommendation T.4, with an ASN.1 wrapper to make it compatible with an X.400 BodyPart as defined in X.420." in C#, starting from any standard .NET image/bitmap objects?
This is the LDAP definition of the photo attribute.
Solution
G3 Fax is some version of TIFF if i remember correctly.
So you would probably have to encode some specific variant of TIFF in ASN.1 as described by that X.420 spec from the ITU (its freely available)
It states:
G3FacsimileBodyPart ::= SEQUENCE { parameters G3FacsimileParameters,
data G3FacsimileData}
G3FacsimileParameters ::= SET { number-of-pages [0] INTEGER OPTIONAL,
non-basic-parameters [1] G3FacsimileNonBasicParameters
OPTIONAL}
G3FacsimileData ::= SEQUENCE OF BIT STRING
So, get some decent ASN.1 encoder and just dump a TIFF image in that format into the G3FacsimileData field and it should work.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow