i want to send some data(string) from my java applet to a php page when ever user clicks a button.. when user clicks another button on html page, i should be able to bring back the data and have to do some operations on that data.
i am having some public methods which returns a URLEncoded string in my applet.(basically i have a bytearray. i will compress it using zip utilities in java and then i will create a string and then send it to the php page.
)
i will call this methods in the javascript of a html page which contains the applet.
then i will post the javascript variables to a php page
it is working fine.
but as i am URLEncoding the string, the string length is more than the actual content. so i want to know whether there is any other way of doing this.
but the process should be like this.
Quote
public function should return a string in the applet
from javascript, i should call the public function.
then i should be able to post it to the php page
from javascript, i should call the public function.
then i should be able to post it to the php page
i tried without URLEncoding the string.
but when i send the data from php page to the applet, then the data is not coming properly . because i am using ZIP utilities, when i receive a string from php page, i have to unzip it before using it. but if i send the string without URLEncoding, then while receiving the string, at the time of doing unzip, i am getting invalid bitlength exception
i am doing stripslashes() in the php while sending data to the applet
can any one tell me is there any way otherthan URLEncoding so that i can send the actual string directly from applet-> javascript->php

New Topic/Question
Reply




MultiQuote



|