Description
Saves to a file the contents of a blob field in the SAP Business One database.
Syntax
Parameters
Example
| Saving a blob field to a file (C#) | Copy Code |
|---|
// Specify the table and blob field BlobParams oBlobParams = (SAPbobsCOM.BlobParams)oCompanyService.GetDataInterface(SAPbobsCOM.CompanyServiceDataInterfaces.csdiBlobParams); oBlobParams.Table = "RDOC"; oBlobParams.Field = "Template"; // Specify the file name to which to write the blob string blobNewFilePath = @"C:\myblobfile.zip"; oBlobParams.FileName = blobNewFilePath; // Specify the key field and value of the row from which to get the blob BlobTableKeySegment oKeySegment; oKeySegment = oBlobParams.BlobTableKeySegments.Add(); oKeySegment.Name = "DocCode"; oKeySegment.Value = "ACT10001"; // Save the blob to the file oCompanyService.SaveBlobToFile(oBlobParams);
|
|
See Also