no message
This commit is contained in:
@@ -102,7 +102,7 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
LinkedHashMap<String, File> innerFiles = new LinkedHashMap<>();
|
||||
for (String aName : message_in.files.keySet()) {
|
||||
File f = Utils.getTempFileName(aName);
|
||||
Utils.unpackFile(message_in.files.get(aName), f);
|
||||
CommonUtils.bytesToFile(message_in.files.get(aName), f);
|
||||
innerFiles.put(aName, f);
|
||||
}
|
||||
Vector<String> targets_ = new Vector<>(message_in.targets);
|
||||
@@ -223,7 +223,7 @@ public abstract class RepositoryServer<D extends Database> {
|
||||
Print("Отправить клиенту файл по пути " + CommonUtils.Brackets(request.arg));
|
||||
response = new ServerExchangeUnit_2021(ServerCode.OK);
|
||||
File file = new File(request.arg);
|
||||
response.object = file.exists() ? Utils.packFile(file) : null;
|
||||
response.object = file.exists() ? CommonUtils.fileToBytes(file) : null;
|
||||
break;
|
||||
case Email:
|
||||
Print("Отправка сообщения электронной почты");
|
||||
|
||||
Reference in New Issue
Block a user