×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2009
    Location
    Turkey
    Posts
    9

    Using Compressed data in J2ME (data from .Net Web Service)

    Hi,
    I want to use compressed data between J2ME Client and .NET Web Service (.asmx).

    I compress the data in .NET service with "GZipStream" Class. After, I open the compressed data in J2ME client which incoming from web services.

    (I using "com.java4ever.apime.io.GZIP.inflate()" method in J2ME.)

    But,I have a problem like this ;

    .NET "GZipStream" class return this array for compressed "Kadir" > ...[0][23][255][14]....

    but Capacity of "byte" object in J2ME between -128 and 127, in addition "byte" object of .Net platform can take > 254,255...

    How can I solve this problem? or Can you give me another idea for this scenario?

    Best regards..

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Using Compressed data in J2ME (data from .Net Web Service)

    Welcome to Forum Nokia!

    It's not a problem. 255 will simply become -1. It is the byte same either way. Does it cause you a problem?

    Graham.

  3. #3
    Registered User
    Join Date
    Jun 2009
    Location
    Turkey
    Posts
    9

    Thumbs up Re: Using Compressed data in J2ME (data from .Net Web Service)

    OK, I solved the problem.

    Thank you

  4. #4
    Registered User
    Join Date
    Jun 2009
    Location
    Turkey
    Posts
    9

    Red face Re: Using Compressed data in J2ME (data from .Net Web Service)

    Hi grahamhughes :

    And this problem

    http://discussion.forum.nokia.com/fo...272#post731272

    Thank you

Similar Threads

  1. problem calling web service from j2me app
    By mmartins in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-04-23, 08:45
  2. J2ME compliant web service that handles file transfer
    By furrbie in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-02-28, 08:54
  3. j2me web service
    By littleson in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-02-10, 16:10
  4. [moved] how to call a web service from Http connection in j2me?
    By mindIt in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-02-10, 09:17
  5. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×