×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    184

    How to upload Image form FTP

    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 Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to upload Image form FTP

    Try to put your query at more related thread - Discussion Boards > Development Platforms > Open C/C++

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: How to upload Image form FTP

    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
    Join Date
    Oct 2008
    Location
    India
    Posts
    184

    Re: How to upload Image form FTP

    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
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: How to upload Image form FTP

    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
    Join Date
    Oct 2008
    Location
    India
    Posts
    184

    Re: How to upload Image form FTP

    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 Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: How to upload Image form FTP

    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. Image on a Form
    By ionutianasi in forum Mobile Java General
    Replies: 2
    Last Post: 2006-10-24, 11:04
  3. image upload to server
    By janhu in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2005-01-16, 04:19
  4. 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
  •  
×