Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

passing byte array to java from javascript  RSS feed

 
ramya ganta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,

can any one help me., How to pass byte array from javascript to java applet
iam writting as below

in javascript sending byte array to java applet method like

function GotoJavaMethod(bytearray){
document.formname.ourApplet.GetByteArrayFromJS(bytearray)
}


in applet iam catching the bytearray like
public void GetByteArrayFromJS(byte[] bytes){
}

this is the code i have written .

waiting for help
ramya
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you having tourble with exactly?

Eric
 
ramya ganta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi,

iam getting an error

GetByteArrayFromJS{0}: no such method exists

in javascript

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!