×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    8

    Unhappy upload image from camera cause OutOfMemoryException on S40 device

    Hi all,
    i have a problem, i am developing application that can capture image from device camera and then upload it to server.. i can capture the image and show it on a form.. but when i try to upload the image, it always throws OutOfMemoryException.. when i check the byte[] image length it show 512000, i've try to change image quality when capturing image even to 1, the byte[] image size is stil 512000..

    Anybody can help me?

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: upload image from camera cause OutOfMemoryException on S40 device

    Quote Originally Posted by elisafina1205 View Post
    Hi all,
    i have a problem, i am developing application that can capture image from device camera and then upload it to server.. i can capture the image and show it on a form.. but when i try to upload the image, it always throws OutOfMemoryException.. when i check the byte[] image length it show 512000, i've try to change image quality when capturing image even to 1, the byte[] image size is stil 512000..

    Anybody can help me?

    Thanks
    Before sending the image to server, try to encode it to PNG format - this will reduce the size and then send it to server in chunks.
    Refer to http://www.developer.nokia.com/Commu...ing_in_Java_ME
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. can J2ME access camera(image capture) event from N73 device
    By rajivmodh in forum Mobile Java General
    Replies: 4
    Last Post: 2009-12-15, 05:51
  2. Camera snapshot on S40 5th edition (2630 device)
    By r28073 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2009-07-07, 06:40
  3. Upload Image On Server
    By meet2saurabhmail in forum Symbian
    Replies: 1
    Last Post: 2009-02-07, 14:46
  4. How to change default camera image in S40 5th edition?
    By asahlot in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-01, 00:37
  5. Notification on Image/Video capture from native Camera app
    By riteshw in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2007-11-26, 13:46

Posting Permissions

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