Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor dhiraj.deka's Avatar
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93
    How can we convert an image into byte array? Actually I have to send the captured image to server from the device.

  2. #2

  3. #3
    Regular Contributor KevinBoyd's Avatar
    Join Date
    Sep 2009
    Posts
    353
    Quote Originally Posted by dhiraj.deka View Post
    How can we convert an image into byte array? Actually I have to send the captured image to server from the device.
    You could also have a look at this link.
    There is some good advice there and also some code is which you could probably use.

  4. #4
    Regular Contributor arungupta_2jan's Avatar
    Join Date
    Nov 2007
    Posts
    254
    Quote Originally Posted by dhiraj.deka View Post
    How can we convert an image into byte array? Actually I have to send the captured image to server from the device.
    hi
    you can do this by this way

    1) connect to the server
    2) read the file byte by byte and send it to the server using a buffer.
    3) read the end of file and infrom the server that u are done
    4) at the server save the file.
    feel free to disscuss if u have any doubt.

    regards
    Arun Gupta

  5. #5
    Regular Contributor dhiraj.deka's Avatar
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93
    Hi arungupta_2jan,
    I have written already for connecting to the server. But I am getting problem in converting the image byte by byte into byte array. The above examples in the links are more confusing. Please tell me how to achieve this if possible by some examples..

  6. #6
    Registered User joy.mca's Avatar
    Join Date
    Jul 2009
    Posts
    259
    Quote Originally Posted by dhiraj.deka View Post
    How can we convert an image into byte array? Actually I have to send the captured image to server from the device.
    Are you sure you want to convert the image into byte array? When you send a captured image from the device to the server the file is to be read byte by byte. You can convert the file in binary and then you can send to the server. So would that serve your purpose?

    Thankx
    Joy

  7. #7
    Regular Contributor dhiraj.deka's Avatar
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93
    ok Joy I think that may be a good idea for this.

Similar Threads

  1. getting byte array from image
    By jules_ in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2009-10-09, 20:58
  2. Preventing write-access to NFC tag
    By Jazz66 in forum Near Field Communication
    Replies: 4
    Last Post: 2009-06-25, 11:11
  3. getting byte array from image....
    By robertodena in forum Mobile Java Media (Graphics & Sounds)
    Replies: 14
    Last Post: 2006-09-22, 14:22
  4. DOJA appli -> Create Image from Byte Array
    By teamore in forum Mobile Java General
    Replies: 2
    Last Post: 2004-10-29, 11:14
  5. Loading Image data from 'raw' bytes
    By LongSteve in forum Mobile Java General
    Replies: 2
    Last Post: 2002-11-20, 17:38

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved