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
Post a Comment