Fixed issue 10698. Added setContentType().
authorAntonio Moreno <antonio.moreno@openbravo.com>
Tue, 22 Sep 2009 17:05:28 +0200
changeset 5066 12c30a4b5d14
parent 5065 0982a680f58f
child 5067 e13fc21ebf9c
Fixed issue 10698. Added setContentType().
src/org/openbravo/erpCommon/info/ImageInfoBLOB.java
--- a/src/org/openbravo/erpCommon/info/ImageInfoBLOB.java	Tue Sep 22 14:36:59 2009 +0200
+++ b/src/org/openbravo/erpCommon/info/ImageInfoBLOB.java	Tue Sep 22 17:05:28 2009 +0200
@@ -107,6 +107,7 @@
         image.setBindaryData(bytea);
         OBDal.getInstance().flush();
       }
+      response.setContentType("text/html; charset=UTF-8");
       PrintWriter writer = response.getWriter();
       writeRedirect(writer, image.getId(), columnName);
     } else if (vars.commandIn("DELETE")) {
@@ -133,6 +134,7 @@
         } finally {
           OBContext.getOBContext().setInAdministratorMode(adminMode);
         }
+        response.setContentType("text/html; charset=UTF-8");
         PrintWriter writer = response.getWriter();
         writeRedirect(writer, "", columnName);
       } else {