Click here to Skip to main content
15,892,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is it possible to upload pdf into ms access database from vb studio 2010 form?

What I have tried:

if it is possible how to deal with it ?

how to add the pdf file?
Posted
Updated 18-Apr-18 0:03am

1 solution

It is possible. You have to declare a field as BLOB (Binary Large OBject) using LongVarBinary.

See HOW TO: Read and Write a File to and from a BLOB Column by Using ADO.NET and Visual Basic .NET[^] for accessing such fields.

But note that saving large amounts of binary data in databases is not recommended for performance reasons. When there is only one client accessing the Access file it might store such files in the file system instead and store only the path in the database.
 
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