• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpClient Object Serialization

 
sneha jo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

How do we pass objects using apache http client post method?
 
Rob Spoor
Sheriff
Posts: 20831
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

There are two ways:
1) post the serialized object as "file" data; I believe MultipartRequestEntity should be used for that.
2) encode the serialized object (as byte[]) to something else; usually base 64 or HEX.
 
sneha jo
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the warm wishes Rob Spoor.

Can you guide me to some tutorial where I can get started.

 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!