在 2006-12-11一的 07:05 -0500,Adam Tauno Williams写道: > > Hello. Recently we have a new requirement to store document in LDAP > > directory. This is a piece of written paper scanned in black and white > > (bitmap) with signature, received by fax, one for each contact person. > > I think the best solution would be defining a new attribute using FAX > > syntax (ID : 1.3.6.1.4.1.1466.115.121.1.23). > > Values in this syntax are encoded as if they were octet strings > > containing Group 3 Fax images as defined in . > > But I googled around not being able to find a tool that I can use to > > convert the fax (coming as png format) > > Now are you receiving the fax as a PNG? Modify the receiver to NOT > convert the fax to PNG since. Faxes are received as G3 (always).
That's the really stupid thing happening here: receiving fax is the job
of another department and another person, and manually copied to a
shared folder in PNG format exported from fax software, to the person on
the spot who maintaining data in our department, and communication
between departments are not smooth, people prefer to work the old way.
Sad. (Certainly I know receiving directly in fax format is better)
>
> > to fit the above requirement.
> > netpbm can convert image to raw g3 format, but don't seems to provide
> > information if it can be wrapped in ANS.1. A search of ANS.1 and image
> > toolkits provide very little information. rfc2159 seems to be
> > particularly about this issue but this RFC is referred to from too few
> > software's document too.
>
> You don't convert it to ASN.1, the LDAP tools do that for you. Create
> an LDAP file and specify the attribute like:
>
> {attriutename}:< file://tmp/file.g3
>
> and it will load. Do a "man ldif"
>
> Most decent LDAP client libraries will take take of all this for you.
> In C# you'd read the file into a byte[] and set it as the value of the
> attribute. Then just do a ldap modify/create.
>
> > Can I safely store the document (bitmap including a signature) in LDAP
> > as raw g3 data without worrying breaking regulations?
>
> Of course.
>
>
> ---
> You are currently subscribed to [email protected] as: [EMAIL PROTECTED]
> To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as
> the SUBJECT of the message.
--
锐业软服(国内业务) http://www.realss.cn
Real SoftService http://www.realss.com
销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German,
English)
国际业务(International Sales): 0086 10 8460 6011 (German and English)
联系:厦门大学科技园,嘉庚二号楼6楼
邮政:厦门大学2312号信箱(邮编361005)
signature.asc
Description: 这是信件的数 字签名部分
--- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe send email to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the SUBJECT of the message.
