×

Discussion Board

Results 1 to 15 of 23

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    how to use http mutipart/form data wiki example to upload a image

    I read wiki article

    http://www.developer.nokia.com/Commu...part/form-data

    and want to know how to use it in my GUI application

  2. #2
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: how to use http mutipart/form data wiki example to upload a image

    I really need help and not getting any clue how to use this article in my app to upload a image.. Champions please help

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: how to use http mutipart/form data wiki example to upload a image

    If you are new with the HTTP API set, it may be better to check complete examples first, like the GUI-less exampleclient (expect it somewhere as AppProts\exampleclient folder somewhere under Examples), and the GUI-based WebClient example (in S60Ex or gui examples depending of the given SDK). These just work as they are provided, so you can check and debug them.
    Since you want uploading from a GUI code, the WebClient example can be a good pick to add the upload functionality, since it already has most of the required objects and methods.

  4. #4
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: how to use http mutipart/form data wiki example to upload a image

    Na.. actually I am not newto HTTP API set. Earlier also I uploaded simple text files using HTTP WebClient. But this time have to deal with images and not able to understand how and where to merge the code in my app.

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: how to use http mutipart/form data wiki example to upload a image

    Try following what has been done in that wiki article & merge it accordingly in your code.Give it a try, & then post your queries here for any further help.

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: how to use http mutipart/form data wiki example to upload a image

    If you know handling of incoming data, you already know MHTTPDataSupplier, since that is what you are getting the data from when EGotResponseBodyData comes. When posting data you are the one who implements this interface, and the HTTP framework is going to use it for getting the data from you. The "untitled" code blocks between "POST code Get the file you want to upload in binary format" and "Submit the transaction" show how to prepare this data, with multipart headers and delimiters. They are not coming from the air, but they are prescribed by the HTTP standard. Search for multipart rfc (with Google for example) to get the related specifications.

  7. #7
    Registered User
    Join Date
    Jun 2012
    Posts
    54

    Re: how to use http mutipart/form data wiki example to upload a image

    Now When i succeeded in implementing that wiki article, don't know why but getting Kern Exec 3 in following code of ClientEngine class:

    RStringF method = iSession.StringPool().StringF(HTTP::EPOST,RHTTPSession::GetTable());

    All variables are allocated memory sucessfully, but I am still getting Kern exec 3. Is there any way to avoid this panic

  8. #8
    Registered User
    Join Date
    Apr 2012
    Posts
    39

    Re: how to use http mutipart/form data wiki example to upload a image

    Can we merge python code in our symbian c++ code?

Similar Threads

  1. Replies: 0
    Last Post: 2009-11-13, 11:15
  2. How to upload Image form FTP
    By pranay_preet in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2009-08-10, 09:08
  3. How to upload a long video as a binary file to a server as Multipart/form-data
    By MForceOne in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2009-07-31, 16:24
  4. Image Upload - multipart/form-data
    By thiagobrunoms in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-02-20, 12:07
  5. Image upload form
    By jarips in forum Browsing and Mark-ups
    Replies: 13
    Last Post: 2004-01-19, 14:40

Posting Permissions

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