• Post Reply Bookmark Topic Watch Topic
  • New Topic

determining the size of an object  RSS feed

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm building an app that consists of an applet that talks to a database
it works by sending sql queries to a servlet, the servlet runs the query against the database, then bundle the return data in a little class I made and sent this back to the applet
the applet/servlet communication works using httpurlconnection
when I sent this object back across the wire I need to set the content length
how does one determine this??

Thanks
Dave
 
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend something like using Jakarta's HttpClient API. It can help eliminate the need to set the content size, but it also exposes a method to obtain such, if needed.

Hope this helps...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!