Passing Image as byte array for javascript to a java applet
843807Jan 19 2010 — edited Jan 20 2010I 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?