varbinary(max)pdf转换为image(gif,jpeg)

问题描述:

你好

我遇到以下情况:

我已将pdf文件存储到sqlserver varbinary(max)字段中,并尝试检索与gif或jpeg相同的文件,并在浏览器或报告(SSRS或Crystal)或asp.net/vb.net中显示它们.任何帮助将不胜感激

感谢

Hello

I have a situation like the following:

I have stored my pdf files into sqlserver varbinary(max) field and trying retrieve the same as gif or jpeg and display them in browser or report(SSRS or crystal) or asp.net/vb.net. Any help will be greatly appreciated

Thanks

那么,您如何期望SQLServer的PDF存储文件可以作为图像检索呢?

您需要一个转换器将PDF转换为图像,然后显示它.
看看这些:
PDF到Image Converter SDK的VB.NET示例 [如何使用Ghostscript API将PDF转换为图像 [
Well, how can you expect that PDF stored file from SQLServer can be retrieved as Image?

You need a converter to convert PDF to image and then display the same.
Have a look at these:
VB.NET Example for PDF to Image Converter SDK[^]
How To Convert PDF to Image Using Ghostscript API[^]

Once you have converted it, you can store/use the image as needed.