What is the advertage of InputStream for MultipartFile ? #18855
Unanswered
JackrayWang
asked this question in
Q&A
Replies: 2 comments
-
The issue had no activity for 30 days, mark with Stale label. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The issue had no activity for 30 days, mark with Stale label. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions