You need to sign in to do that
Don't have an account?
Why we use Static Resource in Visualforce Markup? Why we do not use "Documents folder" for resources
Can any one please explain, why we use "Static Resource" in VF Markup to display images and to link other elements like CSS and JS files. Why we do not place these components in "Document" folder and use it on a VF page. What all advantages are there if we use Static Resource.
Thanks in advance..!!
Regards,
Rajneesh
Thanks in advance..!!
Regards,
Rajneesh
Documents is meant as a reference for the typical end Users to use when necessary. This does not transfer between orgs.
Note that if you want to make say an image used in a HTML template available to the unauthenticated recipient of the email then you must use a Document as described in How do I reference a public image stored in salesforce.com in my HTML?. (http://help.salesforce.com/apex/HTViewSolution?id=000005050&language=en_US)
Short answer, if you are using it for a check mark image that will be used in a field, this needs to go between orgs and so I would use a static resource if possible.
Source: http://salesforce.stackexchange.com/questions/40103/when-to-use-static-resource-vs-documents
Also check what is the difference between static resource and document (https://success.salesforce.com/answers?id=90630000000gr7bAAA).
Static Resource vs Document (http://theblogreaders.com/static-resource-vs-document/#.VrdWwhh97IV)
All Answers
Documents is meant as a reference for the typical end Users to use when necessary. This does not transfer between orgs.
Note that if you want to make say an image used in a HTML template available to the unauthenticated recipient of the email then you must use a Document as described in How do I reference a public image stored in salesforce.com in my HTML?. (http://help.salesforce.com/apex/HTViewSolution?id=000005050&language=en_US)
Short answer, if you are using it for a check mark image that will be used in a field, this needs to go between orgs and so I would use a static resource if possible.
Source: http://salesforce.stackexchange.com/questions/40103/when-to-use-static-resource-vs-documents
Also check what is the difference between static resource and document (https://success.salesforce.com/answers?id=90630000000gr7bAAA).
Static Resource vs Document (http://theblogreaders.com/static-resource-vs-document/#.VrdWwhh97IV)