• 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
 
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!