hi all,
I have made a
java web service. Which takes SQL query, Username and password of Database to connect to and the file name which i want to give to the created text file as parameters and it returns a text file. Now, I want to receive the same file ( stored at server side) on J2ME client side. If i make a normal Java web service client then I can get the file using DataHandler. However, I am not able to get the file as attachment using the DataHandler at J2ME client side. It said it does not recognize DataHandler, however I tried and the server side code returns the datahandler as byte[]. I tried to take the advantage and in J2ME client took the result as byte[]. But no use
It is giving me Uncaught exception java/lang/NullPointerException. Can you please look into it. I am attaching the files, Server side code and the client side code and the files made as stub.
The client side code is here
The server side code is ::
Thanks in advance
Lokesh