Re: Calling Java Class from python

Discussion in 'Python' started by Gabriel Genellina, Apr 20, 2008.

  1. En Wed, 16 Apr 2008 07:37:55 -0300, Good Z <> 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
     
    Gabriel Genellina, Apr 20, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,947
    Thomas Weidenfeller
    Oct 12, 2005
  2. Andreas Lagemann
    Replies:
    8
    Views:
    539
    Mike Wahler
    Jan 10, 2005
  3. raunaq
    Replies:
    4
    Views:
    753
    Darryl L. Pierce
    Jan 21, 2007
  4. Andy
    Replies:
    3
    Views:
    704
    Are Nybakk
    Nov 7, 2007
  5. Rajesh
    Replies:
    3
    Views:
    233
    Thomas 'PointedEars' Lahn
    May 11, 2005
Loading...

Share This Page