Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing Image as byte array for javascript to a java applet

843807Jan 19 2010 — edited Jan 20 2010
I have an html page running in ie 7 that uses JavaScript and an active object to combine multiple single page tiff images into one multipage tif image. I then pass the image as a byte array to a java applet. I liked this approach since I didn't have to save the image to a file first. When run under the 1.5 jre everything works as expected. When I installed the 1.6 jre the parameter for the byte array is null. But a string parameter comes through as passed. Apparently something has changed from 1.5 to 1.6 as far as JavaScript and java are concerned. I know I can use the Base64 encoder to convert the array to a string but this seems like an unecessary step, What is the proper way to pass an array of bytes from JavaScript to a java applet?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2010
Added on Jan 19 2010
1 comment
873 views