Is the 5 MB static resource size limit 5,242,880 bytes or 5,000,000 bytes?Testing callout with zipped static resourceIs it Possible to access SDK From Static Resource?Is there anything wrong with using Static Resource URL without the timestamp?accessing static resource in apexReferencing Static Resource Images in a visualforce pageNeed to call 2 static resources in CSS and Visualforce PageWhy is this Static Resource dynamic reference not working?Static resource stops working on compressionHow can I access the html text in static resource file in lightning client-side controller?Can Static-Resource Files be Listed via Apex?

Hostile Divisor Numbers

Transistor gain, what if there is not enough current?

Why doesn't a particle exert force on itself?

What detail can Hubble see on Mars?

Was there a dinosaur-counter in the original Jurassic Park movie?

Append unique characters read from filecontents to a string

Can anyone identify this unknown 1988 PC card from The Palantir Corporation?

How can I obtain and work with a Platonic dodecahedron?

Why increasing of the temperature of the objects like wood, paper etc. doesn't fire them?

Can an Iranian citizen enter the USA on a Dutch passport?

Why is the blank symbol not considered part of the input alphabet of a Turing machine?

Is it normal for gliders not to have attitude indicators?

Python 3 - simple temperature program version 1.3

My large rocket is still flipping over

Copper as an adjective to refer to something made of copper

Explaining intravenous drug abuse to a small child

Is crescere the correct word meaning to to grow or cultivate?

Primes in a Diamond

Has the United States ever had a non-Christian President?

What is the thing used to help pouring liquids called?

Dimmer switch not connected to ground

Make me a minimum magic sum

What does のそ mean on this picture?

Is there a reason why Turkey took the Balkan territories of the Ottoman Empire, instead of Greece or another of the Balkan states?



Is the 5 MB static resource size limit 5,242,880 bytes or 5,000,000 bytes?


Testing callout with zipped static resourceIs it Possible to access SDK From Static Resource?Is there anything wrong with using Static Resource URL without the timestamp?accessing static resource in apexReferencing Static Resource Images in a visualforce pageNeed to call 2 static resources in CSS and Visualforce PageWhy is this Static Resource dynamic reference not working?Static resource stops working on compressionHow can I access the html text in static resource file in lightning client-side controller?Can Static-Resource Files be Listed via Apex?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








12















Documentation such as Static Resources says:




A single static resource can be up to 5 MB in size. An organization
can have up to 250 MB of static resources.




We have one growing static resource of size 4,950,663 bytes, so it would be good to know whether the limit is 5,242,880 bytes or 5,000,000 bytes.










share|improve this question






























    12















    Documentation such as Static Resources says:




    A single static resource can be up to 5 MB in size. An organization
    can have up to 250 MB of static resources.




    We have one growing static resource of size 4,950,663 bytes, so it would be good to know whether the limit is 5,242,880 bytes or 5,000,000 bytes.










    share|improve this question


























      12












      12








      12


      2






      Documentation such as Static Resources says:




      A single static resource can be up to 5 MB in size. An organization
      can have up to 250 MB of static resources.




      We have one growing static resource of size 4,950,663 bytes, so it would be good to know whether the limit is 5,242,880 bytes or 5,000,000 bytes.










      share|improve this question
















      Documentation such as Static Resources says:




      A single static resource can be up to 5 MB in size. An organization
      can have up to 250 MB of static resources.




      We have one growing static resource of size 4,950,663 bytes, so it would be good to know whether the limit is 5,242,880 bytes or 5,000,000 bytes.







      static-resources






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 27 at 19:19







      Keith C

















      asked Apr 27 at 17:03









      Keith CKeith C

      97.7k1197224




      97.7k1197224




















          1 Answer
          1






          active

          oldest

          votes


















          11














          It's 5,000,000 bytes. In Salesforce, all storage units are per SI units, where megabyte means 1,000,000, and mebibyte means 1,048,576. Nowhere in Salesforce are the SI units for kibibyte/mebibyte/gibibyte, etc used in the documentation explicitly. Good luck finding this explicitly mentioned in the documentation, but note that this trend is consistent across all such limits (6MB Apex code, 10MB Custom Settings, etc). The rare exception to this rule are the field size limits (e.g. 32KB is 32,767 characters).






          share|improve this answer























          • Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

            – Keith C
            Apr 27 at 17:46






          • 1





            As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

            – Aza
            Apr 27 at 21:53











          • @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

            – sfdcfox
            May 2 at 11:04











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "459"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f260296%2fis-the-5-mb-static-resource-size-limit-5-242-880-bytes-or-5-000-000-bytes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          11














          It's 5,000,000 bytes. In Salesforce, all storage units are per SI units, where megabyte means 1,000,000, and mebibyte means 1,048,576. Nowhere in Salesforce are the SI units for kibibyte/mebibyte/gibibyte, etc used in the documentation explicitly. Good luck finding this explicitly mentioned in the documentation, but note that this trend is consistent across all such limits (6MB Apex code, 10MB Custom Settings, etc). The rare exception to this rule are the field size limits (e.g. 32KB is 32,767 characters).






          share|improve this answer























          • Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

            – Keith C
            Apr 27 at 17:46






          • 1





            As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

            – Aza
            Apr 27 at 21:53











          • @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

            – sfdcfox
            May 2 at 11:04















          11














          It's 5,000,000 bytes. In Salesforce, all storage units are per SI units, where megabyte means 1,000,000, and mebibyte means 1,048,576. Nowhere in Salesforce are the SI units for kibibyte/mebibyte/gibibyte, etc used in the documentation explicitly. Good luck finding this explicitly mentioned in the documentation, but note that this trend is consistent across all such limits (6MB Apex code, 10MB Custom Settings, etc). The rare exception to this rule are the field size limits (e.g. 32KB is 32,767 characters).






          share|improve this answer























          • Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

            – Keith C
            Apr 27 at 17:46






          • 1





            As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

            – Aza
            Apr 27 at 21:53











          • @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

            – sfdcfox
            May 2 at 11:04













          11












          11








          11







          It's 5,000,000 bytes. In Salesforce, all storage units are per SI units, where megabyte means 1,000,000, and mebibyte means 1,048,576. Nowhere in Salesforce are the SI units for kibibyte/mebibyte/gibibyte, etc used in the documentation explicitly. Good luck finding this explicitly mentioned in the documentation, but note that this trend is consistent across all such limits (6MB Apex code, 10MB Custom Settings, etc). The rare exception to this rule are the field size limits (e.g. 32KB is 32,767 characters).






          share|improve this answer













          It's 5,000,000 bytes. In Salesforce, all storage units are per SI units, where megabyte means 1,000,000, and mebibyte means 1,048,576. Nowhere in Salesforce are the SI units for kibibyte/mebibyte/gibibyte, etc used in the documentation explicitly. Good luck finding this explicitly mentioned in the documentation, but note that this trend is consistent across all such limits (6MB Apex code, 10MB Custom Settings, etc). The rare exception to this rule are the field size limits (e.g. 32KB is 32,767 characters).







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 27 at 17:16









          sfdcfoxsfdcfox

          269k13214463




          269k13214463












          • Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

            – Keith C
            Apr 27 at 17:46






          • 1





            As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

            – Aza
            Apr 27 at 21:53











          • @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

            – sfdcfox
            May 2 at 11:04

















          • Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

            – Keith C
            Apr 27 at 17:46






          • 1





            As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

            – Aza
            Apr 27 at 21:53











          • @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

            – sfdcfox
            May 2 at 11:04
















          Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

          – Keith C
          Apr 27 at 17:46





          Thanks and for the broadness of the answer too. So we only have 49,337 bytes to spare...

          – Keith C
          Apr 27 at 17:46




          1




          1





          As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

          – Aza
          Apr 27 at 21:53





          As an addendum, this tends to be a general rule -- kibibytes are technically written KiB, mebibytes MiB, gibibytes GiB; as opposed to KB, MB, GB.

          – Aza
          Apr 27 at 21:53













          @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

          – sfdcfox
          May 2 at 11:04





          @Aza It's not as general as a rule as you'd like to think. If it were, there wouldn't be such confusion over it. Look at the file sizes on a Microsoft system, for example, or the actual number of bytes of RAM in your 1GB DDR memory module. Computers are inherently base-2 devices in most cases, so the binary representation actually makes more sense. Programmers tend to be more base-2 oriented, engineers more base-10 oriented. One can't assume MB is decimal or binary without context, even 20+ years after the standardization.

          – sfdcfox
          May 2 at 11:04

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Salesforce Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f260296%2fis-the-5-mb-static-resource-size-limit-5-242-880-bytes-or-5-000-000-bytes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company