wood burning stoves*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing byte array to java from javascript
 
Similar Threads
read/write integer binary file into integer array -- how?
Document Retrival from database.
Returning array from applet to JavaScript
Reading byteArray at Client side
java to javascript communication