esoe 1 year ago
parent
commit
439fd6d2ae
  1. 2
      src/main/java/ru/molokoin/home/servlets/Storage.java
  2. 1
      src/main/sql-scripts/home.sql
  3. BIN
      target/classes/ru/molokoin/home/servlets/Storage.class
  4. BIN
      target/home.war
  5. BIN
      target/home/WEB-INF/classes/ru/molokoin/home/servlets/Storage.class

2
src/main/java/ru/molokoin/home/servlets/Storage.java

@ -93,6 +93,8 @@ public class Storage extends HttpServlet{
@Override @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=UTF-8");
//page(request, response); //page(request, response);
//скачивание файла //скачивание файла
try { try {

1
src/main/sql-scripts/home.sql

@ -9,3 +9,4 @@ create table home.repository (
); );
ALTER TABLE home.repository ADD data LARGEBLOB; ALTER TABLE home.repository ADD data LARGEBLOB;

BIN
target/classes/ru/molokoin/home/servlets/Storage.class

Binary file not shown.

BIN
target/home.war

Binary file not shown.

BIN
target/home/WEB-INF/classes/ru/molokoin/home/servlets/Storage.class

Binary file not shown.
Loading…
Cancel
Save