Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing byte array to java from javascript

 
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