You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/04/16 02:05:48 UTC

[GitHub] [servicecomb-java-chassis] huxiaozheng opened a new issue, #2785: 如何让接口返回的byte[] 不被序列化成String?

huxiaozheng opened a new issue, #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785

   当前的contentType:  application/json。新增一个接口,期望返回体是byte[]  但最终结果却是String。是否有demo教程,如何针对不同的contentType做拓展?好像实现ProduceProcessor就行了?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] huxiaozheng commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
huxiaozheng commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1100598166

   新增微服务,新增的接口。目前不考虑a->b->c这种场景。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1100588961

   是的,但是定制的时候,如果存在a->b-c这样的场景, 估计还挺麻烦的。 
   你的场景也是老代码兼容性场景吧? 否则可以避免这样设计。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1101894093

   java chassis目前没对 application/octet-stream 建模。 需要先建模,支持哪些场景, 然后再实现相关功能。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1100596720

   java chassis看下是否能够后续提供 content-type:application-binary的支持, 不过得先做下设计和相关的支持场景


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1100604307

   可以做成上传/下载不?  https://servicecomb.apache.org/references/java-chassis/zh_CN/general-development/upload-download.html
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] huxiaozheng commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
huxiaozheng commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1103419864

   好的,谢谢


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] huxiaozheng commented on issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
huxiaozheng commented on issue #2785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785#issuecomment-1101025941

   上传下载性能上我觉得应该会有过多的损耗。另外,这种类型application/octet-stream 不支持byte[] 返回吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] huxiaozheng closed issue #2785: 如何让接口返回的byte[] 不被序列化成String?

Posted by GitBox <gi...@apache.org>.
huxiaozheng closed issue #2785: 如何让接口返回的byte[] 不被序列化成String?
URL: https://github.com/apache/servicecomb-java-chassis/issues/2785


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org