In the code from the server I get the scanned image and from it I get an array of bytes and the image should be saved in the database. Here is the code to save.
try { UploadFileMaintenance upl = PXGraph.CreateInstance<UploadFileMaintenance>(); PX.SM.FileInfo fileinfo = new PX.SM.FileInfo(@"ShipmentEntry\", null, arr); if (upl.SaveFile(fileinfo, FileExistsAction.CreateVersion)) { if (fileinfo.UID.HasValue) { PXNoteAttribute.SetFileNotes(this.Base.Caches["SOShipment"], (SOShipment)(this.Base.Caches["SOShipment"].Current), fileinfo.UID.Value); this.Base.Save.Press(); } } } catch (PXException ex) { /// } on this line if (upl.SaveFile(fileinfo, FileExistsAction.CreateVersion)) I get this exception File type is not allowed . The code works in the AcuamticaERP system AcuamticaERP
.jpg, and you put.pdfthere. - Denis BubnovAcumaticaso the non-standard functions forC#are all in theAcumaticaframework - Vardan Vardanyan.jpgfile? - Vardan Vardanyan