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
Sfdc wonderSfdc wonder 

Best option for Audio/Video files

Hi,

we have a requirement,we developing one App which is  intigrated By 3rd party(Web Application).we need to push all the Video/audio files to salesforce from web application.Can any one suggest me which is best Sobject to store these files in SFDC.
i have some options in my mind
       a)files
       b)Content Version
       c)Attachment

how can play these imported videos without download in salesforce?any video playes are needed or we need to write any code for that

i think no option are available in salesforce for playing videos with out Download to local system.


Best Answer chosen by Sfdc wonder
Arunkumar RArunkumar R
Yes...!  You can insert through ContentVersion Object.

Please go through the below two links,


For more info ContentDocument : http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

For more info ContentVersion : https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentversion.htm

But Attachment object supports Insert calls, If you want to insert only object in attachment. Please take a look on limitation.

For more info about attachment : http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

All Answers

Arunkumar RArunkumar R
Hi Ram,

Obviously Files is better than Attachment for Storing Audio/Videos.

Because files are the following advantages,
1. We can preview files.
2. share files.
3. Content version support.

Note: As per salesforce document, Not all files can be previewed, such as copy-protected PDFs, unknown file types, and any file larger than 25 MB. For files that can’t be previewed, the Preview option isn’t available on feeds or list views, and files appear as generic file type icons in the feed. Some Microsoft Office 2007 features don't display correctly in previews.


I have checked some of the file only get previewd such as document, text file, ppt.. But video's doesn't support preview. I think there is no option the preview.

Please follow the link for comparsion,
https://help.salesforce.com/apex/HTViewHelpDoc?id=collab_files_size_limits.htm&language=en
Sfdc wonderSfdc wonder
Hi Arun,

Thanks for your reply........

can i insert videos to files from Web Application through Api
Arunkumar RArunkumar R
Yes...!  You can insert through ContentVersion Object.

Please go through the below two links,


For more info ContentDocument : http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

For more info ContentVersion : https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentversion.htm

But Attachment object supports Insert calls, If you want to insert only object in attachment. Please take a look on limitation.

For more info about attachment : http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm
This was selected as the best answer
Sfdc wonderSfdc wonder
Hi Arun,

Its awesome.... thanks for ur reply
Arunkumar RArunkumar R
Welcome ram...!
Haider Ali 21Haider Ali 21
I second above mentioned suggestions. Here is a pro tip for you.  You should give Wavelet Mod Apk (https://apkgraph.com/wavelet-mod-apk/) a try. It has got optimization for a huge number of devices to generate custom EQ curves. 
 
tim jovvytim jovvy
I'm currently working on a beauty store and experiencing the same issue. Can I apply the same thing here on my store Beauty Mystery Box (https://superbotanicals.co/products/beauty-mystery-box)? Any guidance from you will be hugely appreciated. Thanks!