For that you need contact of Javascript or JSP with Servlet. From JSP if you take some input and then convert it into byte array then you can pass it to Servlet using Java Script.
Lokesh have you understood the question fully?
He is asking how to send a byte array from j2me client to servlet and vice versa.
So i think its better not to refer javascript and jsp here
Chetan,
In Client Open an HttpConnection (Connector.open and cast it to an HttpConnection)
1,Open the output stream and write your byte array.
In Server get the request.servletInputStream
read the contents
Syam.Sathyan.George
(My boss is a Jewish carpenter)