Http h = new Http();
// Instantiate a new HTTP request, specify the method (GET) as well as the endpoint
HttpRequest req = new HttpRequest();
req.setEndpoint('https://s3-us-west-2.amazonaws.com/yourfilepath');
req.setMethod('GET');
// Send the request, and return a response
HttpResponse res = h.send(req);
using above gets binary, when i try to downlaod the file using content disposition as attachment the file is downloading but not opening.
I want the file to be downloaded into system without saving to attachment object. If i get the file with Content disposition as inline am not able to download .msg file
use through apex .
Regards,
Harish.R.
using above gets binary, when i try to downlaod the file using content disposition as attachment the file is downloading but not opening.
I want the file to be downloaded into system without saving to attachment object. If i get the file with Content disposition as inline am not able to download .msg file
Thanks.
Check before sending through apex . check above code check with .csv file .
Regards,
harish.R