I have a created Flexicapture project which has 2 flexilayout templates. I have tested the FC project with a sample file using hot folders and it generates the output files. the project is configured to use a batch type (batchtypeId = 4).
I currently have a export file path configured on the General tab of the FC project properties. when i execute the code, the code is able to send the files to the server, the files are recognized and then I can see the output files being generated in the output folder.
The external file storage setting is disabled so the project information is stored in DB
I am trying to integrate the project with my application using the web services API. Below is the code snippet for this.
The statement Flexicapture.File attachedFile = client.LoadDocumentResult(document.Id, "MyResult.xml") returns a file with null bytes. there is however other file related information in the object such as the templatename, total symbols etc
If I remove the Export file path from the project properties, the bytes are still null
Can anyone provide guidance on this issue?
var client = new FlexiCaptureWebServiceSoapClient();
client.ClientCredentials.UserName.UserName = "us\\abcd";
client.ClientCredentials.UserName.Password = "20w345uwrewrx333";
int roleType = 12;
int stationType = 10;
var sessionId = client.OpenSession(roleType, stationType);
var projectId = client.OpenProject(sessionId, "D232S-DF29-33A3-83GC-31E6DFD32359");
var userId = client.FindUser("us\\abcd");
var batch = new Batch();
batch.Name = "MGTestBatch";
batch.Description = "MGTestBatch";
batch.ErrorText = "";
batch.Id = 0;
batch.BatchTypeId = 4;
batch.Priority = 0;
var batchId = client.AddNewBatch(sessionId, projectId, batch, userId);
Flexicapture.File file1 = LoadFile("C:\\Test1\\Test file - revised (554390).pdf");
client.AddNewImage(sessionId, batchId, file1);
int percentCompleted = 0;
while (percentCompleted < 100)
percentCompleted = client.GetBatchPercentCompleted(batchId);
var documents = client.GetDocuments(batchId)
if (documents != null)
foreach(Flexicapture.Document document in documents)
Flexicapture.File attachedFile = client.LoadDocumentResult(document.Id, "MyResult.xml");
var x = ex.Message;