Upload the file to the server

This is a discussion on Upload the file to the server within the Symbian forums in Other Technologies category; Help me! How I can upload binary file to the HTTP server? Maybe there is so= mething really rabotayuschiy example, or the normal description of how to d= o this? Edited by: UGreek on 05-Feb-2008 01:29...

Go Back   Application Development Forum > Other Technologies > Symbian

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 02-04-2008, 08:31 PM
ugreek
Guest
 
Default Upload the file to the server

Help me! How I can upload binary file to the HTTP server? Maybe there is so=
mething really rabotayuschiy example, or the normal description of how to d=
o this?

Edited by: UGreek on 05-Feb-2008 01:29
Reply With Quote
  #2  
Old 02-05-2008, 05:26 AM
khalid
Guest
 
Default Re: Upload the file to the server

Hi,
We have a Symbian HTTP example in \Examples\AppProts\exampleclient, take a =
look at httpexampleclient.cpp

Regards
Khalid

Symbian Ltd
Reply With Quote
  #3  
Old 02-06-2008, 01:03 PM
ugreek
Guest
 
Default Re: Upload the file to the server

Thanks for your reply, but in this example not shows how upload file. I am =
interested in how to correctly form the HTTP POST with Content-Type: multip=
art / form-data;
Reply With Quote
  #4  
Old 02-07-2008, 06:06 AM
Sebastian Wieczorek
Guest
 
Default Re: Upload the file to the server

UGreek wrote:
> Thanks for your reply, but in this example not shows how upload file. I
> am interested in how to correctly form the HTTP POST with Content-Type:
> multipart / form-data;


Take a look at CHTTPFormEncoder, also sending data without any form
encoding would be better.

Sebastian Wieczorek
Reply With Quote
  #5  
Old 02-08-2008, 02:43 AM
ugreek
Guest
 
Default Re: Upload the file to the server

CHTTPFormEncoder not help me, it is only encode data, but I need to send a =
file. Does not working example, which loads the file on server via HTTP?
Reply With Quote
  #6  
Old 02-08-2008, 04:18 AM
Sebastian Wieczorek
Guest
 
Default Re: Upload the file to the server

UGreek wrote:
> CHTTPFormEncoder not help me, it is only encode data, but I need to send
> a file. Does not working example, which loads the file on server via HTTP?


What do you mean send a file?this is the question...
Do you want to send is as form data like from www browser, to be handled
easy on server side by server side scripts? Or do you want to send it
without all browser/form/html garbage?

1) if you want to send it in form and use content type: multipart/form-data
then chttpformencoder will not help, docs says it will url-encode its
contents, so you have to find/write yourself such encoder

2) if you want to send/post file without form/html redundancy http example
is a really good starting point
Reply With Quote
  #7  
Old 07-10-2008, 01:31 AM
saikrishna
Guest
 
Default Re: Upload the file to the server


Hi,

Pls check the following link


[http://wiki.forum.nokia.com/index.ph...art/form-data]


thanks and regards,
saikrishna



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:07 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.