Versions Compared

Key

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

...

  • Streaming Support : With the data streaming functionality, when a service client makes a request, the result is streamed to the service client rather than building the full result in the server and returning it. This allows virtually unlimited payload sizes in the result, and the response is instantaneous to the client.
  • Binary Data : Binary data is handled using Base64 encoding to store and retrive non-textual data, such as data files and BLOB fields in databases.

 

Service description

...

The data service transfers and retrievs file data between the client and a database. The list of queries used by the data service to carry out the actions are as follows. 

  • createNewFileQuery: Creates a new file given the file name and the type.
  • appendDataToFileQuery: Appends new data to a given file. By sending in file chunks, data streaming can also be done while sending the data.
  • deleteFileQuery: Deletes a file when the file name is given.
  • checkFileExistsQuery: Checks if a file with a given file name exists.
  • getFileRecordsQuery: Returns all data records associated with a specific file.
  • getFileNamesQuery: Returns the names of the files in the database.
  • getFileTypeQuery: Returns the file type of a given file name.
  • getFileSizeQuery: Returns the size of a given file name.

...

By combining functionality of the above queries, we can create a sample file management system with the use of data services.

...