Save pdf in ax table

how to insert/save pdf file in ax tables…

it is working with sql directly but i don’t know how to save using ax in database

Binary data (including PDF files) can be stored in container fields. You can look at code dealing with company logo, for instance.

An alternative is not putting files to database at all (it increases its size, slows down data recovery etc.) and use an external storage (and document management), such as SharePoint.