Examples of uploadFile()

  • org.modeshape.jcr.api.JcrTools.uploadFile()
    Upload the content in the supplied stream into the repository at the defined path, using the given session. This method will create a 'nt:file' node at the supplied path, and any non-existant ancestors with nodes of type 'nt:folder'. As defined by the JCR specification, the binary content (and other properties) will be placed on a child of the 'nt:file' node named 'jcr:content' with a node type of 'nt:resource'.

    This method always closes the supplied stream.

    @param session the JCR session @param path the path to the file @param stream the stream containing the content to be uploaded @return the newly created 'nt:file' node @throws RepositoryException if there is a problem uploading the file @throws IOException if there is a problem using the stream @throws IllegalArgumentException is any of the parameters are null
  • org.serviceconnector.api.cln.SCFileService.uploadFile()
    Upload file with default operation timeout. @param remoteFileName the remote file name to store the file @param inStream stream to upload @throws SCServiceException create file session to SC failed
    upload file to Server failed
    error message received from SC
  • org.uengine.util.ftp.Uploader.uploadFile()
  • sendspaceapi.Upload.Anonymous.AnonymousUpload.uploadFile()

  • Examples of ca.carleton.gcrc.couch.onUpload.conversion.AttachmentDescriptor.uploadFile()

        ImageInfo imageInfo = imp.getImageInfo(outputFile);
       
        if( imageInfo.orientation == ImageInfo.Orientation.REQUIRES_CONVERSION ){
          File convertedFile = File.createTempFile("oriented_", attDescription.getMediaFileName());
          imp.reorientImage(outputFile, convertedFile);
          attDescription.uploadFile(convertedFile, mimeType);
        }

        ServerWorkDescriptor serverWork = attDescription.getServerWorkDescription();
        serverWork.setOrientationLevel(UploadConstants.SERVER_ORIENTATION_VALUE);
      }
    View Full Code Here

    Examples of ca.carleton.gcrc.couch.onUpload.conversion.AttachmentDescriptor.uploadFile()

        ImageInfo imageInfo = imp.getImageInfo(outputFile);
       
        if( imageInfo.orientation == ImageInfo.Orientation.REQUIRES_CONVERSION ){
          File convertedFile = File.createTempFile("oriented_", attDescription.getMediaFileName());
          imp.reorientImage(outputFile, convertedFile);
          attDescription.uploadFile(convertedFile, mimeType);
        }

        ServerWorkDescriptor serverWork = attDescription.getServerWorkDescription();
        serverWork.setOrientationLevel(UploadConstants.SERVER_ORIENTATION_VALUE);
      }
    View Full Code Here

    Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.uploadFile()

            if( null == mimeType ) {
              mimeType = "application/octet-stream";
            }
           
            // By default, upload original file
            conversionContext.uploadFile(
              conversionContext.getAttachmentName()
              ,attDescription.getMediaFile()
              ,mimeType
              );
          }
    View Full Code Here

    Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContext.uploadFile()

            if( null == mimeType ) {
              mimeType = "application/octet-stream";
            }
           
            // By default, upload original file
            conversionContext.uploadFile(
              conversionContext.getAttachmentName()
              ,attDescription.getMediaFile()
              ,mimeType
              );
          }
    View Full Code Here

    Examples of ca.carleton.gcrc.couch.onUpload.conversion.FileConversionContextImpl.uploadFile()

            if( null == mimeType ) {
              mimeType = "application/octet-stream";
            }
           
            // By default, upload original file
            conversionContext.uploadFile(
              attDescription.getAttachmentName()
              ,attDescription.getMediaFile()
              ,mimeType
              );
          }
    View Full Code Here

    Examples of com.enterprisedt.net.ftp.FileTransferClient.uploadFile()

                String name = "PauseResumeTransfers.java";

                // the upload will be interrupted by the listener - it will call
                // cancelAllTransfers(). We catch the expected exception.
                try {
                    ftp.uploadFile(name, name);
                }
                catch (FTPTransferCancelledException ex) {
                    log.debug("Transfer cancelled");
                }
                int len = (int) ftp.getSize(name);
    View Full Code Here

    Examples of com.enterprisedt.net.ftp.FileTransferClient.uploadFile()

                log.info("Bytes transferred=" + cl.getBytesTransferred());
                log.info("File partially uploaded (localsize=" + file.length()
                        + " remotesize=" + len);

                log.info("Completing upload by resuming");
                ftp.uploadFile(name, name, WriteMode.RESUME);
                len = (int) ftp.getSize(name);

                // only the remaining bytes are transferred as can be seen
                log.info("Bytes transferred=" + cl.getBytesTransferred());
                log.info("File uploaded (localsize=" + file.length()
    View Full Code Here

    Examples of com.enterprisedt.net.ftp.FileTransferClient.uploadFile()

                log.info("Connecting to server " + host);
                ftp.connect();
                log.info("Connected and logged in to server " + host);

                log.info("Uploading file");
                ftp.uploadFile(filename, filename);
                log.info("File uploaded");

                log.info("Downloading file");
                ftp.downloadFile(filename + ".copy", filename);
                log.info("File downloaded");
    View Full Code Here

    Examples of com.enterprisedt.net.ftp.FileTransferClient.uploadFile()

                log.info("Uploading file");
                String name = "MonitorTransfersCommands.java";

                // put the file
                ftp.uploadFile(name, name);
                log.info("File uploaded");

                // now delete remote file
                ftp.deleteFile(name);
    View Full Code Here

    Examples of com.ettrema.httpclient.Folder.uploadFile()

           
            java.io.File tmp=java.io.File.createTempFile("filetest", ".txt");
            FileUtils.writeStringToFile(tmp, "this is a test text 888");
           
            try{
              File uploaded = hh.uploadFile(tmp);
            } catch (Exception e){
              //This is expected: User does not have permission to publish contentlets
              Assert.assertTrue(e instanceof InternalServerError);
            }
    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.