×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    HTTP file upload problem

    Hi,
    i m sending files to a server through HTTP request, my code works fine when i m sending file having size upto 20 to 25 kb.
    but when i m sending file of 2.25 MB in size its giving me a error note "Memory Full Close some application and try again".
    how can i send file in multipart in chunks.
    i m using code from url given

    http://wiki.forum.nokia.com/index.ph...part/form-data


    can any body provide me a solution.

    Regards
    ASIF NAZIR

  2. #2
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: HTTP file upload problem

    Hi Asif ,

    I Had written a similar Application.
    you are right send your data in Chunks and Remember Use HBufC8 for chunks and delete it later.

    Also u must me sending the data as per HTTP 1.1 as application: octet-stream


    Note : There might be a limit on the File size on the server side.
    In such an event connection might be lost.

    In My case i had hosted my own server

    Refer HTTP 1.1 docs for breaking data into chunks


    Regards
    Shashi Kiran G M

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: HTTP file upload problem

    Also the Error "Memory Full...." occurs due to a memory leak or if you have exceeded the Stack memory Limit set in the MMP.

    Hence it is better to use HBufC8 which consumes heap memory not stack memory.



    Regards
    Shashi Kiran G M

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: HTTP file upload problem

    Greetings.
    I just happen to work on the code you mentioned,(http://wiki.forum.nokia.com/index.ph...part/form-data)
    and since I am a beginner with Symbian C++ I don't know how to put it all together. I need help.
    Can I get somehow a complete example application that does it? (uploading of a file via POST method)
    I'd appreciate it a lot,

    thanks,
    Alex

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    1

    Re: HTTP file upload problem

    Quote Originally Posted by Asif Nazir View Post
    Hi,
    i m sending files to a server through HTTP request, my code works fine when i m sending file having size upto 20 to 25 kb.
    but when i m sending file of 2.25 MB in size its giving me a error note "Memory Full Close some application and try again".
    how can i send file in multipart in chunks.
    i m using code from url given

    http://wiki.forum.nokia.com/index.ph...part/form-data


    can any body provide me a solution.

    Regards
    ASIF NAZIR
    Hello ASIF NAZIR!
    Sorry that may I request your project file to upload file to a server? I really need it, please. Thanks.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    187

    Re: HTTP file upload problem

    Hi gmsk19,

    As u have posted that i had also written similar application, how can i devide myself a files data in small chunks, i m also using HBufC8 for chunks and deleting it later.there is no limit on server regarding file size.
    can u send me ur code that u r using in ur application for file uploading to server,i m thankful to u in advance.

    Regards
    Asif Nazir

Similar Threads

  1. File Browsing Problem
    By Marwa in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2007-10-10, 15:52
  2. Downloading a Binary File using HTTP GET
    By razas in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-08-31, 19:53
  3. 9500 downloading jad file problem - urgent!!
    By knmehta in forum Mobile Java General
    Replies: 1
    Last Post: 2005-12-13, 09:33
  4. Common problem: wrong file format "exception"
    By lukaszpl in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-05, 17:09

Posting Permissions

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