By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,600 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,600 IT Pros & Developers. It's quick & easy.

Java String to Javascript String

P: n/a
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.
Jul 10 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sanjay wrote:
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 ?
Jul 10 '08 #2

P: n/a
On Jul 10, 5:55*pm, Stevo <n...@mail.invalidwrote:
Sanjay wrote:
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 ?
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.
Jul 10 '08 #3

P: n/a
Sanjay wrote:
On Jul 10, 5:55 pm, Stevo <n...@mail.invalidwrote:
>Sanjay wrote:
>>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 ?

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
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jul 13 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.