Data conversion

The DataBlade® API provides special functions to handle the following data conversions that a C UDR might need to perform:
  • Data conversion between the text and binary representations of the data

    The control mode of a query determines whether the query results are in text or binary representation. The DataBlade API provides functions that convert between these two representations. Conversion between these two representations might also be useful in the input and output support functions of an opaque type. For a list of these functions, see Conversion of opaque-type data between text and binary representations.

  • Data transfer between a client application and the database server

    When opaque-type data is transferred between a client application and the database server, the database server calls the send and receive support functions. For these UDRs, you can handle potential differences in computer architecture that might affect the byte ordering or size with special DataBlade API functions. For more information, see Conversion of opaque-type data with computer-specific data types.