sigData = readBuf;
if (charsetConversion) { nsAutoString charset; charset.AssignWithConversion(m_charset); if (NS_FAILED(ConvertToUnicode(charset, readBuf, sigData))) sigData.AssignWithConversion(readBuf); } else sigData.AssignWithConversion(readBuf);
nsMsgAttachmentHandler::LoadDataFromFile(nsFileSpec& fSpec, nsString &sigData){  PRInt32       readSize;  char          *readBuf;  nsInputFileStream tempFile(fSpec);  if (!tempFile.is_open())    return NS_MSG_ERROR_WRITING_FILE;            readSize = fSpec.GetFileSize();  readBuf = (char *)PR_Malloc(readSize + 1);  if (!readBuf)    return NS_ERROR_OUT_OF_MEMORY;  nsCRT::memset(readBuf, 0, readSize + 1);  readSize = tempFile.read(readBuf, readSize);  tempFile.close();  sigData = readBuf;  PR_FREEIF(readBuf);  return NS_OK;}