Exemplo n.º 1
0
        public void CreateBinaryFile(BinaryFilesGroup reportGroup, BinaryFile report, int seq)
        {
            //here it my code : apidesh

            byte[] definition = report.Process(reportGroup.TargetFolder);
            if (definition == null)
            {
                return;
            }
            _proxy.CreateResource(report.Name + ".jpg", "/" + reportGroup.TargetFolder, true, definition, "image/jpg", new Property[] { });
            Logger.LogMessage(string.Format("{0} Binary File :[{1}] / [{2}] published successfully ", seq, reportGroup.Name, report.Name));
        }
Exemplo n.º 2
0
 private void uploadResource(string destinationPath, string resourceName, string resourceType, byte[] contents)
 {
     destRS.CreateResource(resourceName, destinationPath, true, contents, resourceType, null);
 }
Exemplo n.º 3
0
 private void UploadResource(ReportItem item)
 {
     _Service.CreateResource(item.Name, item.ParentPath, true, item.ResourceContents, item.ResourceType, null);
 }