将PDF转换成二进制 [英] Convert PDF to binary

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

问题描述

大家好,

如何将pdf文件转换为二进制格式以进行存储?
我目前正在使用下面的代码,但不确定这是最佳实践还是方法.
File1内容是用于浏览文件的文件上传组件.

Hi Guys,

how do i convert a pdf file to biary format for storage?
im currently using the code below but not sure if this is best practice or method.
File1 content is a file upload component that use to browse a file.

Dim msg As String = ""

                    Dim readBinary As New BinaryReader(File1.FileContent)
                    msg = readBinary.ReadString()
                    readBinary.Dispose()



谢谢
Anoop



thanks
Anoop

推荐答案

所有文件都是二进制文件,甚至是文本文件.没有什么可以转换"的.

—SA
All files are binary, even text files. There is nothing to "convert".

—SA


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

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