title: How to solve error: Failed to create temp file 18
body: <p>Iam using this code to receive list base64 and print multiple pdf file, I handle this problem by convert each base64 to arraybuffer to blob pdf. But it has error <i>Failed to create temp file 18 : It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources. </i> when pass base64 many time.</p>
  
  <pre><code>$scope.b64toBlob = function (b64Data, contentType, sliceSize) {
            contentType = contentType || '';
            sliceSize = sliceSize || 1024;
  
            var byteCharacters = atob(b64Data);
            var byteArrays = [];
  
            for (var offset = 0; offset &lt; byteCharacters.length; offset += sliceSize) {
              var slice = byteCharacters.slice(offset, offset + sliceSize);
  
              var byteNumbers = new Array(slice.length);
              for (var i = 0; i &lt; slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
              }
  
              var byteArray = new Uint8Array(byteNumbers);
  
              byteArrays.push(byteArray);
            }
  
            var blob = new Blob(byteArrays, {type: contentType});
            return blob;
          }
  
  return $http.post(api, params).then(function(response) {
  
              $scope.isSaving = false;
  
              var datas = response.data;
  
              for(var i = 0; i &lt; datas.length; i++) {
  
                  var uint8Array  = new Uint8Array(datas[i]);
                  var arrayBuffer = uint8Array.buffer;
                  var file = $scope.b64toBlob(datas[i], typeReport);
                  var fileURL = window.URL.createObjectURL(file);
                  window.open(fileURL);
              }
              $scope.clear();
          }, function(){
              $scope.isSaving = false;
          });
  </code></pre>
  
  <p>Sorry for my English. Thanks for help.</p>