News & Updates
Training & Certification
to create and rate content, and to follow, bookmark, and share content with other members.
Can anyone Suggest me how to retrieve the image from database,and display it in sugarcrm modules
Question asked by
on Mar 11, 2015
on Mar 16, 2015 by Rolustech Rolustech
Show 0 Likes
please send solution
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Mar 16, 2015 1:02 AM
When u upload an image through image type field, some id is assigned to image and that id is stored in database and the image is stored in /upload folder, So, uploadimage, check table in database for a value of that field. Now for displaying that image, that id is retrieved and given to that image type field and it shows the image.
If you want to show it in any field in a module's detail view through HTML, let's assume, id of your image is 26d4347b-5e48-f3a6-56a6-54b75ad0a6b4 then you need the following HTML to render that image.
<img src="index.php?entryPoint=download&id=26d4347b-5e48-f3a6-56a6-54b75ad0a6b4&type=SugarFieldImage&isTempFile=1" style="border: 0; width: 50px;height: 50px; ">
Rolustech: SugarCRM Engineering
Ph (US): +1 - 310 - 492 - 5564
Ph (UK): +44 - 207 - 9938 - 524
Show 2 Likes
Retrieving data ...
Having difficulties overriding the enum template and handlers
what does "Assigned Technical Account Manager" do?
Fall '18 (8.2) is Live
Elastic search indexing generates an error
ElasticSearch - fts_queue is not processed