You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/09 14:41:02 UTC

[GitHub] [pulsar] JackrayWang created a discussion: What is the advertage of InputStream for MultipartFile ?

GitHub user JackrayWang created a discussion: What is the advertage of InputStream for MultipartFile   ?



I do not know that why package upload param ‘uploadedInputStream' use InputStream as the type 。Usually we use MultipartFile  as type of upload file  param's type。I want to know the advantages of InputStream .


`
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public void upload(
        final @PathParam("type") String type,
        final @PathParam("tenant") String tenant,
        final @PathParam("namespace") String namespace,
        final @PathParam("packageName") String packageName,
        final @PathParam("version") String version,
        final @FormDataParam("metadata") PackageMetadata packageMetadata,
        final @FormDataParam("file") InputStream uploadedInputStream,
`
`    final @FormDataParam("file") InputStream uploadedInputStream,`

If this param use MultipartFile   as the type I can test success ,but use InputStream  I can not test success by postman.

Can you tell me what can I do to test the rest api success?





GitHub link: https://github.com/apache/pulsar/discussions/18855

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] github-actions[bot] added a comment to the discussion: What is the advertage of InputStream for MultipartFile ?

Posted by GitBox <gi...@apache.org>.
GitHub user github-actions[bot] added a comment to the discussion: What is the advertage of InputStream for MultipartFile   ?

The issue had no activity for 30 days, mark with Stale label.

GitHub link: https://github.com/apache/pulsar/discussions/18855#discussioncomment-4352711

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org


[GitHub] [pulsar] github-actions[bot] added a comment to the discussion: What is the advertage of InputStream for MultipartFile ?

Posted by GitBox <gi...@apache.org>.
GitHub user github-actions[bot] added a comment to the discussion: What is the advertage of InputStream for MultipartFile   ?

The issue had no activity for 30 days, mark with Stale label.

GitHub link: https://github.com/apache/pulsar/discussions/18855#discussioncomment-4352710

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org