Hi, Tien

You can only use serializable types as parameters in API definition and maybe 
you cannot do that.

You can choose an alternative design like:
1. use byte[] (When the size of file is small) (If it's large or undetermined 
splitting it into pieces will also work)
2. use a place to store temporarily and then use the address (like url) to 
identify it.

best regards,

Jason

> On Jul 18, 2019, at 19:18, [email protected] wrote:
> 
> Dear experts
> 
> We are newbie with Dubbo.
> What we are trying to do is providing a public API that supports uploading 
> the content of a file.
> As a result, the API method has a parameter as FileInputStream.
> 
> However, the dubbo protocol does not support Streaming.
> 
> Do you know how we can implement our API with Dubbo?
> 
> Best
> Tien Dat

Reply via email to