This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Upload a file from the CLIENT example (MCSDK) to a browser on PC possible?

I am trying to transfer some data from within the CLIENT example to a PC browser. This is just like the browser popping up a SAVE AS download box and lets you download the file to the desired folder on your computer.

My questions:

1) Is this possible at all?

2) What function(s) would be required? The closest function I can find is "httpSendFullResponse()" but it is not the one I am looking for.

3) I can actually dump this to the browser one line at a time, but the problem is one of the characters contain a "<" and so the browser treats it as a escape character and therefore truncates the rest of the line. Very frustrating.

Ideas?

  • Hi A.S.,

    A.S. said:
    1) Is this possible at all?


    yes, this must be posssible as we have seen browser with many buttons and features in general.

    A.S. said:
    2) What function(s) would be required? The closest function I can find is "httpSendFullResponse()" but it is not the one I am looking for.


    Actually, this question is on the http app development side and not the device ( keystone II processor ) specific.
    This forum is meant for discussing processor related queries.

    A.S said:
    3) I can actually dump this to the browser one line at a time, but the problem is one of the characters contain a "<" and so the browser treats it as a escape character and therefore truncates the rest of the line. Very frustrating.


    You can take the existing Image processing demo project as a base and develop further as per you project requirements.
    This particular community members may not be aware of http functions.
  • Hi,
    The "client" example is dedicated for network stuff, so most of the functions we have used to/from send/receive nework packets.
    And we have used DHCP server,telnet,HTTP server etc., to communicate with PC, you can try to use telnet.