Plaza 365
Plaza 365

No results found for your search

RegisterLog in

8

Visit article

#al

Dynamics 365 Business Central

Category

Nov 19, 2024

Published date

Text

Article Type


AI Summary

  • The article discusses how to format file sizes as KB or MB in Dynamics 365 Business Central using AL code.
  • It mentions using the InStream.Length() Method or procedure Length() in codeunit 4100 "Temp Blob" to get the stream length in bytes.
  • There is no standard method like Formatter.FormatFileSize(Context, Int64) Method in AL for formatting file sizes.
  • The article provides a reference to a standard method in codeunit 8905 "Email Message Impl." that formats file sizes in KB or MB.
  • It includes a sample AL code snippet to demonstrate how to get the size of an uploaded file and format it as KB or MB.
  • The maximum file size limit for uploads or downloads in Business Central is 350 MB.
  • The article also references another article on quickly getting the extension name, file name without extension, and Media (MIME) types from an uploaded file in Business Central.
  • The author encourages readers to try out the provided code snippet and thanks them for reading.

Registered users can view the full text for FREE!

Sign In Now!