×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    9

    receive an image

    hi,

    may I know how to receive an image file? The receiving side is socket example in carbide c++. And may I know how to view the image.

    Thanks alot

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: receive an image

    An easy approach could be RFile::Write immediately what you RSocket::RecvOneOrMore. Both methods use 8-bit descriptors, so it should not cause any problems. Then you can use CImageDecoder (with FileNewL), check the Wiki for examples.
    Instead of having an intermediate file, you can also collect the received data in a CBufFlat, then supply CBufFlat::Ptr(0) to CImageDecode:ataNewL.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    9

    Re: receive an image

    I can't really get that, could you give an code example to me regarding the receive image???
    Is it possible to put the get/recive image code in socketsappui.cpp or to create a new file? Thank you for your help, I am new here..

    Thank you

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: receive an image

    Hi,
    What media you are planning to receive the image?
    Have you thought about using Obex? More info can be found from the link,
    http://www.symbian.com/developer/tec...fferClass.html

    regards,
    -Mahbub

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    9

    Re: receive an image

    i tried to insert the codes into the sockectsappui.cpp file and could not run, it have many errors. I'm stuck with this.Can't figure out how to solve this problem....

  6. #6
    Registered User
    Join Date
    Feb 2008
    Posts
    7

    Re: receive an image

    Any chance that someone will post a full example of image file downloading and saving?

    tnx

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,752

    Re: receive an image

    Quote Originally Posted by iddogoren View Post
    Any chance that someone will post a full example of image file downloading and saving?
    Obviously there is. The psi function (http://en.wikipedia.org/wiki/Wavefunction) does not reach 0, so everything has non-zero probability.
    On the other hand you should experiment with the examples in the Wiki (search for RSocket and CImageDecoder), and on Forum Nokia (www.forum.nokia.com, Documentation / Symbian C++ on the left, then Multimedia and Networking can also help you).

Similar Threads

  1. --- ???save image problem??? ---
    By ferenn in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2007-10-01, 14:33
  2. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  3. 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
  4. HELP: Mutable Image to Immutable Image?
    By rj_cybersilver in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-03-26, 09:58
  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
  •  
×