How to upload images into custom object record in rich text field using visualforce page.when browse button clicks need to take from local system,while save button clicks need to save in that rich text field.anybody help me..
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Looks like rich text area field will be a smoother option, if you are looking for mass upload of images to records directly.
Below link might help you!
if you are looking for the existing images which were in documents to be shown on object record, you can still rely on rich text option or as Nirmal suggested you can use formula field., to be more specific with the implementation, you might need two fields: 1)
Text/url field which holds url of image from documents or static resources
A formula field which can display image in desired height and width by using the value from field 1.
Considering a scenario, where real user might need to have a way to upload / alter those images, rich text area field will help more.
There is no custom field data type that is truly intended to store images. There are probably ways you could work around this, for instance storing SVG data in a long text area then using the UI to render the SVG.
Generally speaking the place that the platform wants you to store images is in the
Attachment object that is automatically available for all custom objects, and most user-facing standard objects (at least top level objects, like Account, Contact, etc.).
Attachment contains a BLOB data type field. As such, it is fit for purpose to store any complex file. It will also auto-detect MIME type on upload.
The only catch is that this object is not updateable.
Recently, there was a feature added that posting to the chatter feed for a record would automatically add that feed item as an attachment. I've never explored under the covers with this feature, but this might also be helpful in that:
These are the avenues I'd explore based on your question.