jQuery in Action, 2nd edition*
The moose likes Applets and the fly likes passing byte array to java from javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "passing byte array to java from javascript" Watch "passing byte array to java from javascript" New topic
Author

passing byte array to java from javascript

ramya ganta
Greenhorn

Joined: Mar 23, 2009
Posts: 5
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
What are you having tourble with exactly?

Eric
ramya ganta
Greenhorn

Joined: Mar 23, 2009
Posts: 5

hi,

iam getting an error

GetByteArrayFromJS{0}: no such method exists

in javascript

thanks
 
GeeCON Prague 2014
 
subject: passing byte array to java from javascript