hi

How to Upload PDF, Zip, etc into a MS SQL Server Varbinary(max) then how do I get it back out un corrupt?

I have some code which works for jpeg, doc, xls files. However if I upload Zip, mpeg or PDF it does not work. It looks like the upload works but the output does not work.

Can someone give me some simple sample code how to upload a Varbinary(max) in then how to pull it back down again?

If the sample code works and will follow.

Thanks,
IT_Techno

use type image instead of varbinary(max)

Another solution of your problem would be to convert your files by
using http://www.convertfiles.com/
This is a great online file converter
PDF to DOC the new best conversion!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.