Package br.com.visualmidia.core.server

Examples of br.com.visualmidia.core.server.Communicate.sendFile()


                               
                        communicate.send("303, Vou te enviar um arquivo");
                        communicate.sendObject(new FileDescriptor(fileRemotePath, file.getName(), file.length(), Long.parseLong(update.getBuildId())));
                       
                        if(communicate.receive().equals("309")) {
                          communicate.sendFile(file);
                            if(communicate.receive().equals("308")){
                                i--;
                            }
                        }
                    }
View Full Code Here


      String location = Constants.DATA_FILES_PATH;
      file = new File(Constants.PREVAYLER_SERVER_DATA_DIRETORY  + Constants.FILE_SEPARATOR + fileName);
     
      communicate.send("303, Vou te enviar um arquivo");
      communicate.sendObject(new FileDescriptor(location, fileName, file.length(), 0));
      communicate.sendFile(file);
    }
       
        try {
            socket.close();
        } catch (IOException e) {
View Full Code Here

              communicate.receiveAndSend("200, Thank you bastard");
              communicate.receiveAndSend("209, troca de imagens");
              communicate.send("702, vou te enviar uma imagem");
              communicate.send(logoName);
   
              communicate.sendFile(communicate.getFileTransferConectionConnectMode(GDSystem.getServerIp()), file);
              copyFileToPhotoFolder(file, logoName);
            } else {
              copyFileToPhotoFolder(file, logoName);
            }
          }
View Full Code Here

                Communicate communicate = new Communicate(sslComunicationSocket);
                communicate.receiveAndSend("200, Thank you bastard");
                communicate.receiveAndSend("209, troca de imagens");
                communicate.send("702, vou te enviar uma imagem");
                communicate.send(personId);
                communicate.sendFile(communicate.getFileTransferConectionConnectMode(GDSystem.getServerIp()), file);
              } else {
                copyFileToPhotoFolder(file, personId);
              }
            }
          } catch (Exception exception) {
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.