Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending two byte arrays from servlet to applet

 
holger Hahn
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi @ all

I have a problem to send two byte Arrays from an servlet to an applet

I know i have to use UrlConection and then maybe ObjectOutputstream but i don't know how to serialized the byte Array.

Is it posssible to use ByteArrayOutputStream instead of ObjectOutputStream

any code sugesstions?

Thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling for "applet servlet communication" yields lots of articles and source codes dealing with this issue.
 
What are you doing? You are supposed to be reading this 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!