File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending bytecodes

 
Sandeep Advani
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help!

I tried sending byte codes to server application (deployed as a Web Service) as a method argument which returned SAXParserException. I believe wrapping up the class file into a String object would require Base64 encoding which I am looking into. My question is whether encoding will the right way or I must try sending byte codes as an attachment? Or something else?

My goal is to load the bytecode on a server which is deployed as a Web Service. This dynamically loaded bytecode will be then invoked from another client.

Any suggestions.

Sandeep
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, Base64 encoding should be fine -- as long as you remember to decode it in the other end
 
Sandeep Advani
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Base64 worked fine and .class file is now able to download on the server site. Infact, I am using AXIS where encoding and decoding part is taken care by the underlying system. I just had to specify the argument as XSD_BASE64 and everything was taken care of.

My new problem is I cannot load this .class file and invoke it. I have posted a question at Java in General (Intermediate)
http://www.coderanch.com/t/373869/java/java/Not-able-load-Class

Any suggestions will be highly appreciated !

Sandeep
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic