You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/05/08 09:58:50 UTC

[GitHub] liubao68 commented on issue #304: 通过@RequestBody byte[] buffer接收字节时,为什么必须是json格式的才行

liubao68 commented on issue #304: 通过@RequestBody byte[] buffer接收字节时,为什么必须是json格式的才行
URL: https://github.com/apache/incubator-servicecomb-java-chassis/issues/304#issuecomment-387350664
 
 
   对于body类型的参数,缺省的Content-Type都是application/json(目前编码主要支持),所以都是json格式编码的byte[]数组。 如果需要上传、下载文件,参考示例:
   https://github.com/apache/incubator-servicecomb-java-chassis/pull/690/files

----------------------------------------------------------------
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