Getting a pdf file out of slate

Submitted by barnettech on Tue, 11/21/2017 - 11:14

select top 1 path as [pdfpath], cast(N'' as xml).value('xs:base64Binary(sql:column("f.data"))', 'varchar(max)') as [pdfdata]
from [file] as f where path like '%Stuff%'