@POST @Path("/{fileName}") public void postFile(@Context HttpStreamer httpStreamer,@PathParam("fileName") String fileName) throws IOException {
  httpStreamer.callback(new HttpStreamHandlerImpl(fileName));
}

@ POST @ Path ( "/{fileName}" ) public void postFile ( @ Context HttpStreamer httpStreamer , @ PathParam ( "fileName" ) String fileName ) throws IOException { httpStreamer . callback ( new HttpStreamHandlerImpl ( fileName ) ) ; }
upload a file with streaming .
