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 ...
Sugar and Pendo Analytics - deactivating it
How do I change language settings from English to Spanish?
[2019-06-17, 2:03 PM UTC] Known Cloud Issues - US Hosted Instances (mtpremiumus04 only)
[2019-05-14, 4:27 PM UTC] Known Cloud Issue - US Hosted Instances (ondemandus16 only)
[2019-05-20, 11:03 PM UTC] Known Cloud Issues - Sugar Cloud US 03