You need to sign in to do that
Don't have an account?
Unable to upload file on box.com in readable form .
Hello everyone,
I am doing integration salesforce with box.com when i uplod file that time first i convert blob into base 64 encoded string then send file using rest api after uploading file my file in not readable form it meanse file is encoded. And i am sending file in body as a blob and also try in body but i can't sucess. so give me some idea that how i can solve this issue.
(Thanks in advance).
I am doing integration salesforce with box.com when i uplod file that time first i convert blob into base 64 encoded string then send file using rest api after uploading file my file in not readable form it meanse file is encoded. And i am sending file in body as a blob and also try in body but i can't sucess. so give me some idea that how i can solve this issue.
(Thanks in advance).
Try below code it'll help you to upload your file to box.com
Please mark my answer as a best solution to your question to help others if it solves your problem.
All Answers
http://enreeco.blogspot.it/2013/01/salesforce-apex-post-mutipartform-data.html
You can not send a file to server which is expecting a binary. So you need to encode the base64 in binary supported format. Above blog post is all about that.
Try below code it'll help you to upload your file to box.com
Please mark my answer as a best solution to your question to help others if it solves your problem.
tried the above example but getting an internal server error 500
this is my code
can you please tell me what I am doing wrong here?
Thanks,
Rahul