Skip to content

[Q/A][Java 17 (dubbo 3.3 Triple)] Please advise on how to implement file upload and download #15185

Answered by oxsean
brookqin asked this question in Question

You must be logged in to vote

You can use @param(type=ParamType.Part) byte[] to accept uploads
use

byte[] download(String name){
   ...
}

to download file,.
But currently dubbo doesn't support streaming uploads and downloads, so the content shouldn't be too large.
Please contact me if you have any questions, it would be good if you could contribute an example.

Replies: 2 comments 1 reply

You must be logged in to vote
0 replies

You must be logged in to vote
1 reply
@brookqin

Answer selected by brookqin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants