Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User pranay_preet's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    184
    Hello friends,

    I am trying to upload the Image on server using FTP for that I used following Code Sample....

    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html

    By using this I can browse the Files on server but unable to upload new file/Image.....
    Is it possible to upload Image on FTP....???
    If yes.....How???

    Please guide.....

    Thanks...
    Thanks & Regards,
    --PRANAY--

  2. #2
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    Try to put your query at more related thread - Discussion Boards > Development Platforms > Open C/C++

  3. #3
    Registered User kis_spn's Avatar
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128
    Quote Originally Posted by pranay_preet View Post
    Hello friends,

    I am trying to upload the Image on server using FTP for that I used following Code Sample....

    http://www.forum.nokia.com/info/sw.n..._1_en.zip.html

    By using this I can browse the Files on server but unable to upload new file/Image.....
    Is it possible to upload Image on FTP....???
    If yes.....How???
    Hello,

    You can write own code for Image file transfer(Binary data transfer) similer as text file transfer or implemented other commands...

    Example: Text file transfer you will use following commands...

    1: Set the file transfer mode to ASCII (this is the default and transmits seven bits per byte)
    ascii
    Response: 200 Type set to A.
    2:Copy a file from the local to the remote.
    put d:\abc.txt

    Similer way

    you can set the file transfer mode to binary (the binary mode transfers all eight bits per byte and must be used to transfer non-ASCII files).

    binary
    Response: 200 Type set to I.
    2:Copy a image from the local to the remote.
    put d:\abc.jpg

    Hope, It'll help you!

  4. #4
    Registered User pranay_preet's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    184
    Thanks kis_spn.....for ur reply...

    i hv copy the image from local folder and send on server using HTTP Post request...but at server side i received the image in Binary format.....how could i change the binary format again in normal format......

    Thanks...
    Thanks & Regards,
    --PRANAY--

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Do you even realize what you are asking? How do you distinguish between "binary format" and "normal format" of an image file?

  6. #6
    Registered User pranay_preet's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    184
    Sorry for not meaningful posting the thread....

    i want to just say that, i am trying to upload image on server by using HTTP Post....
    i just copy the Image file from local folder and make HTTP Post...and at server side i received the image in binary format....which is not readable...i want to receive the data on server side in readable format(i.e. in Image Format)...for this purpose any conversion should be required at server side...?

    Thanks..
    Thanks & Regards,
    --PRANAY--

  7. #7
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    If you post an image in jpg format then try to save received data to file with .jpg extension.

Similar Threads

  1. Form troubles
    By matdodgson in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-12-06, 10:49
  2. S60 (N73) - image upload to own server (not Flickr)
    By jmeyerdo in forum Mobile Web Site Development
    Replies: 4
    Last Post: 2008-07-14, 18:31
  3. Image on a Form
    By ionutianasi in forum Mobile Java General
    Replies: 2
    Last Post: 2006-10-24, 11:04
  4. image upload to server
    By janhu in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2005-01-16, 04:19
  5. image input element types in form -problem
    By seanos11 in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2004-11-01, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved