How to include a file to the KB

Unofficial Content
try
{
  KBObject kbo = Artech.Genexus.Common.Wiki.BlobKBObjectHelper.CreateFileObject(model, filename, internalfilename);
  kbo.Save();
}
  catch (System.Exception exception)
{
  output.AddErrorLine(String.Format("Error when saving file {0} in KB. Exception : {1}", filename, exception.Message));
}