How to upload an image by script

How to upload an image by script

Is it possible create a workflow that would upload an image file?

Pictures are shared on a network drive that is mapped on my computer.  I know the file name and directory path, but I can't figure the code to upload the file to a field in a record.

Is there any way to do this?