Get File data

Call Method
   Function GetFile (FilesID As String, FileName As String) As Byte[]
         Files object ID
         File name and type (ex: File.wav)
Return value
         File data as byte array
VB.NET Example Switch to language: [C#]
  'Create personalizer object and Session object
  Dim pers As New PersonalizerRef.Personalizer()
  Dim sess As New SessionRef.Session()
  Dim SessionID As String = ""
      SessionID = pers.CreateSession("LogonName", "Password")
      'Get Files Object
      Dim objFiles As New FilesRef.Files()
      'Get Files object ID
      Dim FilesID As String = sess.GetFiles(SessionID)
      'Get file
      Dim bytedata() As Byte
      bytedata = objFiles.GetFile(FilesID, "filename.wav")
      'Save file (file.wav)
      Dim fstream As FileStream = File.OpenWrite("file.wav")