Click here to Skip to main content
15,906,296 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 29-Jan-18 6:14am
Comments
David_Wimbley 29-Jan-18 11:42am    
Your question is a bit unclear. Is your issue that you don't know how to download an email (outlook doesn't matter here, its just the client, you'd be downloading from an email server...ex: exchange or gmail).

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900