Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The routine below demonstrates how many Blob images can be returned to the client with a single request.

    Def_List Name(#employees) Fields(#xEmployeeIdentification #xEmployeeSurname #xEmployeeGivenNames #xEmployeeStreet #xEmployeeCity #xEmployeeState #xEmployeePostalCode #xEmployeeHomeTelephone #xEmployeeBusinessTelephone #XDepartmentCode #xEmployeeSalary #xEmployeeStartDate #xEmployeeTerminationDate #xEmployeeImageThumbnail) Type(*working) Entrys(*Max)

SrvRoutine Name(GetEmployees) Response(*JSON)
List_Map For(*Output) List(#Employees)

* Get all employee data
Select Fields(#employees) From_File(xEmployee)

...

* Get the employ

...

  

* Get the employ

ee thumbnail image.  Stored as a Blob
Fetch Fields(#xEmployeeImageThumbnail) From_File(xEmployeeImages) With_Key(#xEmployeeIdentification)

...

 

Add_Entry To_List(#Employees)

...

 

Endselect  


Endselect

Endroutine