Skip to Content

Could not upload or download documents through the gateway server !!

Dear Basis consultants ,

I have a issue in uploading and downloading any file through the gateway server

I have looked in to the below link as reference , Please can you tell me what am I missing here ?

http://scn.sap.com/community/gateway/blog/2013/08/14/how-to-upload-and-download-files-using-sap-nw-gateway

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 04, 2014 at 08:42 AM

    Hello,

    The way you are firing is wrong.

    Make sure that u do the below things :

    U need to define your model as Media Type which is important.

    To Upload file -

    1. To Upload any file implement Create_Stream method and write logic inside it to save accordingly.

    2. When u fire service u need to set method as POST not GET.

    3. U need to add SLUG ( where u pass the key value ) & Content-Type headers ( example - if attachment is pdf then u need to pass application/pdf ).

    To Download file -

    1. Implement Get_Stream method and write logic accordingly.

    2. When u fire service method shud be GET.

    3. URL shud have $value at the end.

    U need to take care of all necessary things to accomplish what u r asking as question.

    Regards,

    Ashwin

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ashwin ,

      Thanks for your Timely support ,And kudos to your wonderful explanation,

      I finally found out the true concept of Virus scanning .

      It seems that our Server does not Have a antivirus provider linked to the system

      That is the reason we were getting a parameter error, Simple .

      Anyhow , We require a Anti-Virus to be installed in our BI server to do this ,

      Then we will have to worry about setting the parameter and then we will have to do post activities

      Thus we can close the thread now.

  • avatar image
    Former Member
    Aug 04, 2014 at 08:36 AM

    Did you try with Advanced REST  client plugin in chrome ?

    Add comment
    10|10000 characters needed characters exceeded

    • suratha rajan Chandrashekhar Mahajan

      Dear Cheandrashekhar,

      I tried the POST method and Im getting anther error unsupported media type .

      I tried it with a txt file

      "The server is refusing to process the request because the entity has a unsupported format"


      If it is a error with the configuration ,Where should I go and correct this error ?



      Thanks in advance.

      Regards,

      Suratharajan .S