NetTalk Central

Author Topic: How to store wholemessage email in MSSQL  (Read 2421 times)

sabra

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
How to store wholemessage email in MSSQL
« on: December 03, 2012, 12:26:22 PM »
 ??? I want to save my nettalk wholemessage in a mssql . I use the datatype varchar(max) (in the dct blob)  , but when i save my record i get a file system error
if self.WholeMessage <> ''
    ! This code runs each time an email is downloaded.  Here we are simply
    ! storing the WholeMessage property, which we need to use later (below)
    ! to load the email into the FileExplorer control.
    TempLong = self.WholeMessageLen
    if TempLong
      pTempString &= new (string(TempLong))
      pTempString  = self.WholeMessage
    end
    if ~pTempString &= null
      ema:WholeMessage[0: TempLong - 1] = pTempString
      dispose (pTempString)
    end
  end

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to store wholemessage email in MSSQL
« Reply #1 on: December 03, 2012, 09:29:54 PM »
what's the file system error?
and how long is the message?

Also - is the EMA table _open_ at this point in the code?

Cheers
Bruce