function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harish BasthapurHarish Basthapur 

How to Round the blob value for the Files uploaded from Force.com to AmazonS3

Hi,

 

We are uploading files from force.com to amazon aws S3, but we need to the round the size of the Files/Folders uploaded into S3, this could be acheived by rounding the value of blob property say:

 

public Blob fileBlob {get;set;}     /*Important one*/
public Integer fileSize {get;set;}
public String fileName {get;set;}

 

How could we acheive this scenario. If possible we are looking to round the file size .

 

Thanx in advance!

EnreecoEnreeco
Hi Sandeep,
what you mean with "round the blob"?
In S3 you could send blob data using Base64 instead of directly a blob data, isn't it?
Sending blob fields from SF using POST requests is tricky (see my blog post with a recently updated solution http://enreeco.blogspot.it/2013/01/salesforce-apex-post-mutipartform-data.html ).
--
May the Force.com be with you