Examples of dumpFile()


Examples of org.openbravo.utils.FileUtility.dumpFile()

      response.setContentType("application/vnd.ms-excel");
    } else {
      response.setContentType("application/x-download");
    }
    response.setHeader("Content-Disposition", "attachment; filename=" + filename + extension);
    f.dumpFile(response.getOutputStream());
    response.getOutputStream().flush();
    response.getOutputStream().close();
    if (!f.deleteFile())
      log4j.error("Download report could not delete the file :" + report);
  }
View Full Code Here

Examples of org.openbravo.utils.FileUtility.dumpFile()

        out.close();
      }
    } else { // If there is not image to show return blank.gif
      FileUtility f = new FileUtility(this.globalParameters.prefix, "web/images/blank.gif", false,
          true);
      f.dumpFile(response.getOutputStream());
      response.getOutputStream().flush();
      response.getOutputStream().close();
    }
  }
}
View Full Code Here

Examples of org.openbravo.utils.FileUtility.dumpFile()

      response.setContentType("application/txt");
    else
      response.setContentType(data[0].datatypeContent);
    response.setHeader("Content-Disposition", "attachment; filename=" + data[0].name);

    f.dumpFile(response.getOutputStream());
    response.getOutputStream().flush();
    response.getOutputStream().close();
  }

  private void printPageCheck(HttpServletResponse response, VariablesSecureApp vars, String strTab,
View Full Code Here

Examples of org.openbravo.utils.FileUtility.dumpFile()

          // If there is not image to show return blank.gif
          imagePath = "web/images/blank.gif";
        }

        FileUtility f = new FileUtility(this.globalParameters.prefix, imagePath, false, true);
        f.dumpFile(response.getOutputStream());
        response.getOutputStream().flush();
        response.getOutputStream().close();
      }

    } finally {
View Full Code Here

Examples of org.openbravo.utils.FileUtility.dumpFile()

    response.setContentType("image/png");
    // mark response as cache-forever
    response.addHeader("Expires", "Sun, 17 Jan 2038 19:14:07 GMT");
    response.addHeader("Cache-Control", "public");

    f.dumpFile(response.getOutputStream());
    response.getOutputStream().flush();
    response.getOutputStream().close();

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.