You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/06/17 03:24:06 UTC

[GitHub] [pulsar] TinDang97 opened a new issue #7284: Why websocket clients consumer message must encode data in base64?

TinDang97 opened a new issue #7284:
URL: https://github.com/apache/pulsar/issues/7284


   I don't understand why we must encode consumer messages in base64 before send it via WebSocket?
   I know base64 will increase message size by about 30% if compared with raw data (my data are images).
   
   Thank guys
   #### System configuration
   **Pulsar version**: 2.0
   **OS**: Ubuntu 18.04


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

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



[GitHub] [pulsar] TinDang97 closed issue #7284: Why websocket clients consumer message must encode data in base64?

Posted by GitBox <gi...@apache.org>.
TinDang97 closed issue #7284:
URL: https://github.com/apache/pulsar/issues/7284


   


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

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



[GitHub] [pulsar] sijie commented on issue #7284: Why websocket clients consumer message must encode data in base64?

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7284:
URL: https://github.com/apache/pulsar/issues/7284#issuecomment-645716146


   @TinDang97 HTTP protocol is a text-oriented protocol. If you want to send raw bytes over WebSocket port, you need to make sure the raw data is encoded using base64 otherwise you will hit deserialization issues.


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

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



[GitHub] [pulsar] TinDang97 commented on issue #7284: Why websocket clients consumer message must encode data in base64?

Posted by GitBox <gi...@apache.org>.
TinDang97 commented on issue #7284:
URL: https://github.com/apache/pulsar/issues/7284#issuecomment-645840737


   > @TinDang97 Sorry, I don't understand what is your question?
   
   Thanks. ^^


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

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



[GitHub] [pulsar] TinDang97 commented on issue #7284: Why websocket clients consumer message must encode data in base64?

Posted by GitBox <gi...@apache.org>.
TinDang97 commented on issue #7284:
URL: https://github.com/apache/pulsar/issues/7284#issuecomment-645724924


   > @TinDang97 HTTP protocol is a text-oriented protocol. If you want to send raw bytes over WebSocket port, you need to make sure the raw data is encoded using base64 otherwise you will hit deserialization issues.
   
   Thanks. Have we any other way else base64? 


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

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



[GitHub] [pulsar] sijie commented on issue #7284: Why websocket clients consumer message must encode data in base64?

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7284:
URL: https://github.com/apache/pulsar/issues/7284#issuecomment-645779407


   @TinDang97 Sorry, I don't understand what is your question?


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

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