{"id":30141,"date":"2024-10-29T10:26:31","date_gmt":"2024-10-29T10:26:31","guid":{"rendered":"https:\/\/www.greytrix.com\/blogs\/sagex3\/?p=30141"},"modified":"2024-10-29T10:26:31","modified_gmt":"2024-10-29T10:26:31","slug":"how-to-store-images-using-sage-x3","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/10\/29\/how-to-store-images-using-sage-x3\/","title":{"rendered":"How to Store Images Using Sage X3"},"content":{"rendered":"\n<p>Before learning how to store images, it&#8217;s important to understand the AB0 and ABB data types.<\/p>\n\n\n\n<p>Understanding AB0 and ABB Data Types<\/p>\n\n\n\n<p>Both AB0 and ABB are BLOB (Binary Large Object) fields used to store binary data, such as images, directly in the database. The length of BLOB fields is expressed in powers of 2. For example, if you select a length of 6, the field can store files up to 64 KB (6 length : 2^6 = 64kb).<\/p>\n\n\n\n<p>Steps to Store Images in <a href=\"https:\/\/www.greytrix.com\/sage-x3\/development\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/sage-x3\/development\/\" rel=\"noreferrer noopener\">Sage X3<\/a><\/p>\n\n\n\n<p>To store images in Sage X3, follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Add a Field to Store the Image<\/li>\n<\/ol>\n\n\n\n<p>\uf0b7Begin by adding a new Column in the table where you want to store your image. Select the data type AB0 or ABB for the field (as shown in the screenshot below).<\/p>\n\n\n\n<p><strong>New Stuff:-<\/strong> <a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/10\/29\/running-total-fields-feature-in-crystal-report\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/10\/29\/running-total-fields-feature-in-crystal-report\/\" rel=\"noreferrer noopener\">Running Total Fields Feature in Crystal report<\/a><\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig1-Development-Table-Details-1024x380.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig1-Development-Table-Details-1024x380.png\" alt=\"Fig1:Development Table Details\"><\/a><\/center>\n<font size=\"2\"><center>Fig1:Development Table Details<\/center><\/font>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>Select the Appropriate Length<\/li>\n<\/ol>\n\n\n\n<p>\uf0b7Choose the length of the BLOB field based on your expected file size. This length is crucial because it defines the maximum size of the image you can store. For example, choosing a length of 6 allows you to store up to 64 KB.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>Save and Validate the Table<br>\uf0b7After setting the field and length, save your changes and validate the table to apply the modifications.<\/li>\n\n\n\n<li>Add the Field to the Corresponding Screen<br>Navigate to the screen associated with your table, and add the same field you just created. Ensure the field length matches the one you set in the table.<\/li>\n<\/ol>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig2-Development-Screen-Details-1024x341.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig2-Development-Screen-Details-1024x341.png\" alt=\"Fig2:Development Screen Details\"><\/a><\/center>\n<font size=\"2\"><center>Fig2:Development Screen Details<\/center><\/font>\n\n\n\n<ol class=\"wp-block-list\" start=\"5\">\n<li>Configure the Graphic Object<\/li>\n<\/ol>\n\n\n\n<p>After adding the field to the screen, you need to configure it as a graphic object to handle images. Select Photo as the graphic object type. When configuring the graphic object, you\u2019ll encounter the following parameters:<\/p>\n\n\n\n<p>oNumber of Lines (Height): Determines the height of the image box.<br>oPhysical Columns (Width): Defines the width of the image box.<br>oPhoto Type: Choose between:<br>\uf0a7Normal: Displays the image as is.<br>\uf0a7Stretched: Stretches the image to fit the box.<br>\uf0a7Proportional: Adjusts the image proportionally to fit the box (as shown in the screenshot below).<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig3-Development-Screen-Details-Graphic-Object-1024x343.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig3-Development-Screen-Details-Graphic-Object-1024x343.png\" alt=\"Fig3:Development Screen Details - Graphic Object\"><\/a><\/center>\n<font size=\"2\"><center>Fig3:Development Screen Details &#8211; Graphic Object<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig4-Graphical-Parameters-1024x491.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig4-Graphical-Parameters-1024x491.png\" alt=\"Fig4:Graphical Parameters\"><\/a><\/center>\n<font size=\"2\"><center>Fig4:Graphical Parameters<\/center><\/font>\n\n\n\n<p>Configure these parameters according to your needs and design preferences.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"6\">\n<li>Save and Validate the Screen<\/li>\n<\/ol>\n\n\n\n<p>\uf0b7Once the graphic object is configured, save and validate the screen to apply the changes.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>Upload the Image<\/li>\n<\/ol>\n\n\n\n<p>\uf0b7Now, when you navigate to the screen, you\u2019ll see the option to upload an image file (as shown in the screenshot below). Select your image file, and the system will display a preview in the designated field.<\/p>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig5-Screen-Before-Selecting-Image-1-1024x175.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig5-Screen-Before-Selecting-Image-1-1024x175.png\" alt=\"Fig5:Screen Before Selecting Image\"><\/a><\/center>\n<font size=\"2\"><center>Fig5:Screen Before Selecting Image<\/center><\/font>\n\n\n\n<center><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig6-Screen-After-Selecting-Image-1024x316.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" class=\"size-full\" style=\"border: 1px solid #A9A9A9; padding: 2px; margin: 2px; \nalign: center;\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2024\/10\/Fig6-Screen-After-Selecting-Image-1024x316.png\" alt=\"Fig6:Screen After Selecting Image\"><\/a><\/center>\n<font size=\"2\"><center>Fig6:Screen After Selecting Image<\/center><\/font>\n\n\n\n<ol class=\"wp-block-list\" start=\"8\">\n<li>Save the Image<\/li>\n<\/ol>\n\n\n\n<p>\uf0b7After previewing the image, hit the Save button to store the image in the database.<\/p>\n\n\n\n<p>Following these steps will allow you to successfully store images in Sage X3 using AB0 or ABB fields. Be sure to select the appropriate length and configuration to meet your requirements.<\/p>\n\n\n[about_us_blog_common]\n","protected":false},"excerpt":{"rendered":"<p>Before learning how to store images, it&#8217;s important to understand the AB0 and ABB data types. Understanding AB0 and ABB Data Types Both AB0 and ABB are BLOB (Binary Large Object) fields used to store binary data, such as images, directly in the database. The length of BLOB fields is expressed in powers of 2.\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2024\/10\/29\/how-to-store-images-using-sage-x3\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,8],"tags":[4313,4314,4309,4312,1822,4311],"class_list":["post-30141","post","type-post","status-publish","format-standard","hentry","category-integration","category-sage-erp-x3","tag-ab0","tag-abb","tag-binary-data","tag-blob","tag-sage-x3","tag-store-binary-data"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/30141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=30141"}],"version-history":[{"count":9,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/30141\/revisions"}],"predecessor-version":[{"id":30154,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/30141\/revisions\/30154"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=30141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=30141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=30141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}