Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5489

Add 'transferTo' functionality to Attachments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.9
    • JAX-RS
    • None
    • Unknown

    Description

      As per the email thread : "Accessing temporary file name of attachments", I've created a patch to add transferTo(File) functionality to attachments. In this way, if the uploaded file has been saved as a temp file, an attempt is made to perform an OS level file move rather than reading the file contents in to and out of memory.

      For large files accessed over network attached storage, this can be quite beneficial.

      Please let me know if this functionality could be included.

      Attachments

        1. transferTo.patch
          7 kB
          Henry Clout

        Issue Links

          Activity

            People

              dkulp Daniel Kulp
              bighenry Henry Clout
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: