Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
van toepassing op:SQL Server
Azure SQL Database
Azure SQL Managed Instance
SQL-database in Microsoft Fabric
De volgende query retourneert de productfoto die is opgeslagen in een kolom met het type varbinary(max). De BINARY BASE64 optie wordt opgegeven in de query om de binaire gegevens in base64-gecodeerde indeling te retourneren.
Example
USE AdventureWorks2022;
GO
SELECT ProductPhotoID, ThumbNailPhoto
FROM Production.ProductPhoto
WHERE ProductPhotoID = 1
FOR XML RAW, BINARY BASE64;
GO
Verwacht het volgende resultaat:
<row ProductModelID="1" ThumbNailPhoto="base64 encoded binary data"/>