我如何通过VB.NET将Outlook电子邮件保存为SQL数据库作为字节数组 [英] How do I via VB.NET save an outlook email to a SQL database as byte array

查看:70
本文介绍了我如何通过VB.NET将Outlook电子邮件保存为SQL数据库作为字节数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





完全迷失在这里。



我可以将pdf文件作为字节数组加载到sql server。



只是想知道outlook的msg文件与PDF相同,是否会被视为pdf文件。即将尝试,并想知道是否有人可以快速回答,甚至说,尝试这种方式。打开任何建议



我尝试过:



随着pdf文件,编写了一个存储过程来捕获数据等,并通过vb.net调用此过程。

Hi,

Totally lost here.

I can load pdf files to sql server as a byte array.

Just wondering is the outlook msg file is the same as PDF and would it be viewed as the pdf file. Just about to try and was wondering if someone could give a quick answer or even say, try this way. Open to any suggestions

What I have tried:

With the pdf file, wrote a stored procedure to capture the data etc and called this procedure via vb.net.

推荐答案

一旦你将数据作为字节数组,它就不会不管它包含什么:PDF,JPG,MP4或畅销小说 - 它只是一个字节流。



所以答案是:是的,就SQL而言,它无法区分包含PDF或Outlook MSG的字节数组。
Once you have the data as a byte array, it doesn't matter what it contains: a PDF, a JPG, a MP4, or a best selling novel - it's just a stream of bytes.

So the answer is: Yes, as far as SQL is concerned it cannot tell the difference between a byte array containing a PDF or an Outlook MSG.


这篇关于我如何通过VB.NET将Outlook电子邮件保存为SQL数据库作为字节数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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