You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/17 17:20:57 UTC

[GitHub] kimmking edited a comment on issue #2083: dubbo返回值不能序列化

kimmking edited a comment on issue #2083: dubbo返回值不能序列化
URL: https://github.com/apache/incubator-dubbo/issues/2083#issuecomment-405658485
 
 
   My suggestion is that you should implement a POJO to contains all data you need as the return value type of exported services.
   For example: If you need some bytes in GridFSDBFile/inputStream, you should define a service method like:
   ```
   public byte[] findFileById(String id); 
   // in implement class method 
   // read byte[] from GridFSDBFile object by MongoDB api
   ```
   or
   ```
   public String findFileById(String id); //return base64 string for bytes
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org