×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    10

    Image to ByteArray

    Is there any way to convert an image into a ByteArray in order to send it using a socket?

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Image to ByteArray

    Hi SalemH,

    you should use the Image getRGB() method to retrieve individual pixel data into an int array, and then you can easily use it. Check these related threads for useful code:

    http://discussion.forum.nokia.com/fo...ad.php?t=71764
    http://discussion.forum.nokia.com/fo...d.php?t=152986

    Pit

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Location
    Copenhagen, Denmark
    Posts
    84

    Talking Re: Image to ByteArray

    Quote Originally Posted by SalemH View Post
    Is there any way to convert an image into a ByteArray in order to send it using a socket?
    ... or use my code found in this thread: http://discussion.forum.nokia.com/fo...d.php?t=156767

Similar Threads

  1. Showing Part of Image from ByteArray (No Native API)
    By vishwas_dot_h in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2009-08-27, 12:17
  2. "Illegal Argument Exception" Creating Image from byteArray
    By abhijeetguptag in forum Mobile Java General
    Replies: 2
    Last Post: 2008-11-10, 14:09
  3. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  4. how to cut some part of Image
    By mshouab in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2006-08-04, 09:05
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

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