This method is working. I am able to get the proper DocuRef and DocuValue records created with this method using this line of code:
DocuRef = DocuManagement::AttachFile(tablenum(InventTable),22565437142,curExt(),'Image',newImage,'image.jpg','Image','image.jpg','image notes'); where "newImage" is the file stream. I am able to print the image on my report however.
My only issue is that the preview in Document management doesn't work. I am able to open the image so I assume it is stored properly. Thanks for the input. I will debug further tomorrow to try and discover why the preview doesn't work.