将pdf文件转换为byte [英] Convert a pdf file into byte

查看:1022
本文介绍了将pdf文件转换为byte的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生



我想将PDF文件转换为字节并保存在数据库中。当用户需要调用此文件时,这将再次转换为PDF并作为PDF页面显示给用户。

这是紧急的



感谢advance

解决方案

您可以使用:

  var  bytes = File.ReadAllBytes(  filename.pdf); 


Dear Sir

I want to convert a PDF file into Byte and save in a database. when user need to call this file then this will convert into PDF again and visible to user as PDF page.
It's Urgent

Thanks in advance

解决方案

You can use :

var bytes = File.ReadAllBytes("filename.pdf");


这篇关于将pdf文件转换为byte的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆