将VarBinary RTF Blob转换为MS SQL中的文本 [英] Convert VarBinary RTF blob to text in MS SQL
本文介绍了将VarBinary RTF Blob转换为MS SQL中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用SQL Server-2008.
I am using SQL server - 2008.
Column Datatype - VarBinary
RTF文件已压缩并保存到此varbinary列.
RTF File is compressed and saved to this varbinary column.
现在如何使用SQL访问和查看RTF文件中的数据?
Now how to access and view data in RTF file using SQL ?
它返回以下内容:㠰た㠴弰巎楛㵤㠵㜸ㄲ㠴.
等.
此处尝试的代码示例:
http://rextester.com/YOFHK34016
对此的任何解决方案. 在2008年,解压缩和压缩功能不起作用. 如何获取文本的RTF文件.
any solution to this. in 2008 Decompress and compress function not work. how i can get RTF file as it is to text.
推荐答案
它对我有用,非常感谢. 我用过:
It worked for me, thanks a bunch. I used:
SELECT convert(nvarchar(max),convert(varbinary(max),[FORMULATEXT]))
这篇关于将VarBinary RTF Blob转换为MS SQL中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文