Hunny Software Library Reference

Base64Encoder.MaxLineLen Property

Gets or sets the maximum line length of the encoded output.

[Visual Basic]
Public Property MaxLineLen As Integer
[C#]
public int MaxLineLen {get; set;}

Property Value

The maximum line length of the encoded output.

Remarks

For MIME-compliant Internet mail, lines should be no longer than 76 characters. However, for applications other than mail, there may be no limit on line length. You may use this option to cause the encoder to output lines of any length. You may even force output without any line breaks by setting the maximum line length to a very large value (for example, Int32.MaxValue) and by setting the Suppress Final Newline option to true.

This method forces the maximum line length to be a multiple of 4. If len is not a multiple of 4, then the method rounds it down to the nearest multiple of 4.

The default value is 72.

See Also

Base64Encoder Class | Hunny.Mime Namespace