Upload pdf in mssqlserver field varbinary(max) by PHP Methods

I upload in a form a pdf in a Document(database) without problem.
I would upload directly by a PHP Methods … function(pathpdf)
is it possible?
TKS