Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Calling Java Class from python

Thread Tools

Re: Calling Java Class from python

Gabriel Genellina
Posts: n/a
En Wed, 16 Apr 2008 07:37:55 -0300, Good Z <(E-Mail Removed)> escribió:

> We have developed a website in python and we need to integrate few features of third party website. They have provided us Base64EncoderDecoder Java Class and would like us to use it to encode the data before sending it to their site and decode it when received anything from their site.
> I have no idea/knowledge of Java. Can you please guide me how can i call Java class from Python scripts? Or what is the best way to handle this condition.
> Is Base64 library provided by python is compatible to Base64EncoderDecoder Java Class?

If the Java class implements Base64 as defined in RFC 3548, it should be compatible with the Python base64 module.
Try with some examples, including the corner cases (empty, one byte, two bytes, three bytes, length = 3n, 3n+1, 3n+2, including bytes outside the ASCII range...)

Gabriel Genellina

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a Java class to the main class for execution Andy Java 3 11-07-2007 11:47 AM
calling the constructor of a class from within the class in java raunaq Java 4 01-21-2007 04:55 PM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
Where to deploy the jar/class file for calling a java class from ssjs Rajesh Javascript 3 05-11-2005 05:54 PM
calling virtual function results in calling function of base class... Andreas Lagemann C++ 8 01-10-2005 11:03 PM