Java String to Javascript String

S

Sanjay

Hi Everyone,

I am converting an image file into a Java string (via an applet) and
would like to pass the Java string back to the Javascript function
that calls the applet's.

I know the simple string return is straightforward. But in this case,
is there something I should do in either/both Javascript function and
Java applet to make sure that the image data is not lost during the
transfer due to difference in the structure of Java and Javascript
strings?

Thanks,
Sanj.
 
S

Stevo

Sanjay said:
I am converting an image file into a Java string (via an applet) and
would like to pass the Java string back to the Javascript function
that calls the applet's.

Why ?
 
S

Sanjay


I am making an image upload tool in AJAX.

Now, I am wondering whether I might just as well do the upload within
Java applet unless there is an easy solution for my query.
 
T

Thomas 'PointedEars' Lahn

Sanjay said:
I am making an image upload tool in AJAX.

So that users will require the JRE and client-side script-support and XHR
support to do what plain HTML (form, file input control, and iframe) could
do? You are on the path to the Dark Side.
Now, I am wondering whether I might just as well do the upload within
Java applet unless there is an easy solution for my query.

Java is off-topic here, unless it is LiveConnect/XPConnect-related.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,818
Members
47,362
Latest member
eitamoro

Latest Threads

Top