erlang - thrift binary type in python (read a binary file and pass it to thrift) -


hi have python thrift client , erlang thrift server. python client needs read binary file , send file content binary type erlang server. did

file=("filename","rb")

binarycontent=file.read()

but when send variable "binarycontent" thrift server, got {thrift_socket_server,244,{child_error,function_clause,[]}} error also, if type(binarycontent), says it's string.

my question there type called binary in python or how should send binary content server side?


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -