Skip to main content

*** Archive *** Kofax TotalAgility - Returning a byte[] to KTA

Article # 3025031 - Page views: 145

Applies To

  • TotalAgility 7.5
  • TotalAgility 7.6
  • TotalAgility 7.7
  • TotalAgility 7.8


Some customers have custom web services or .NET methods that will return an image as a byte array (byte[]).  Since v7.5, we can now handle this byte array in KTA.


Below is an example of a .NET method that takes a file path as an input and returns the file as a byte[].  Please know the returned byte[] is mapped to a process variable of type string.


After this activity executes, we can see the FileData variable stores a GUID at runtime.   This GUID is a pointer to where the byte[] data is stored in the DB as a custom asset.


This can then be passed to subsequent WebService/.NET calls.