File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Using AJAX with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Using AJAX with applets" Watch "Using AJAX with applets" New topic

Using AJAX with applets

Mahesh KumarKing

Joined: Jun 22, 2007
Posts: 2

Is it possible to return a byte[] from the applet to a javascript object?
When i return a string (eg. : (new String(myByteArray))) from the applet, my implementation works fine, but my requirement is to transmit a byte[].
Is it possible?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
Generally, transferring arrays should work. Did you try it?
[ June 25, 2007: Message edited by: Ulf Dittmer ]
Mahesh KumarKing

Joined: Jun 22, 2007
Posts: 2
Hi, I tried returning a byte[]. But the javascript variable holding the return value from the applet value is empty, i.e. to say the byte[] return value could not obtained in a javascipt variable/object.
I agree. Here's the link:
subject: Using AJAX with applets
It's not a secret anymore!