0 Replies Latest reply: Feb 3, 2013 11:17 PM by 983057 RSS

    how to upload file using restful service

    983057
      Hi
      I want to upload file using restful service

      This is my code to send file to rest service


      MultipartEntity reqEntity = new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
      FileBody bin = new FileBody(f);
      FormBodyPart bodypart = new FormBodyPart("file", bin);
      reqEntity.addPart(bodypart);

      HttpClient httpclient = new DefaultHttpClient();
                HttpPost httppost = new HttpPost(url + args);
                httppost.setEntity(reqEntity);
                StringBuilder str = null;
                
                HttpResponse response = httpclient.execute(httppost);
                


      But how can i retrive at server side in restful service using plsql?

      thank you