Discussion:
How to set document name of CMS Message?
Bruno Warmling
2013-04-29 16:14:00 UTC
Permalink
How can i set the document name of CMS Message?

I trying to use this code, but not work well.

byte[] textBytes = System.Text.Encoding.Unicode.GetBytes("test.pdf");
DerOctetString berOctetString = new DerOctetString(textBytes);
Org.BouncyCastle.Asn1.Cms.Attribute documentName = new Org.BouncyCastle.Asn1.Cms.Attribute(dnOid, new BerSet(berOctetString));
Sascha Kiefer
2013-04-29 20:26:37 UTC
Permalink
hi bruno.

what does it mean "not work well". any error messages?

Sent from my iPhone
Post by Bruno Warmling
How can i set the document name of CMS Message?
I trying to use this code, but not work well.
byte[] textBytes = System.Text.Encoding.Unicode.GetBytes("test.pdf");
DerOctetString berOctetString = new DerOctetString(textBytes);
Org.BouncyCastle.Asn1.Cms.Attribute documentName = new Org.BouncyCastle.Asn1.Cms.Attribute(dnOid, new BerSet(berOctetString));
Loading...