Here is the syntax for the FOR XML mode expression: FOR XML mode [, XMLDATA][, ELEMENTS][, BINARY BASE64] The additional parameters are defined as follows :
Binary base64 encoding applies to any data stored in SQL Server that must be treated as a data stream. In our situation (for this text), this is usually graphic data of some type such as the Photo column of the Employees table (refer to Appendix A), which contains a photo of the employee. JPEG and GIF images are other examples of binary data. |