Blob vs JSON, or how to fit a square peg in a round hole with AL and Business Central

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024

Комментарии • 14

  • @MrUltrarebel
    @MrUltrarebel 2 года назад +1

    Thanks for this. I always mix up the InStream and OutStream and used it many times haha.

  • @eduschimu
    @eduschimu Год назад

    Great video! Thanks.

  • @kish100100
    @kish100100 11 месяцев назад

    Hi Erik, Great video. Is there any possibility to display picture size bigger than default (Otherthan Factbox). If yes, plz share your valuable thoughts. Thanks

  • @RubenParente
    @RubenParente 2 года назад

    Thank you! :)

  • @bjarkihall2876
    @bjarkihall2876 2 года назад

    Do you know if it's better to Read an InStream into a Text variable and then add it to JsonObject/JsonArray or to use JsonToken/JsonValue's ReadFrom (which supports Instream parameter), which one has more overhead?

    • @Hougaard
      @Hougaard  2 года назад

      Read direct, I just did all the steps to illustrate the process :)

    • @bjarkihall2876
      @bjarkihall2876 2 года назад +1

      ​@@Hougaard yes, you read it into a Text variable (Copy) and then added the Text variable to the JsonObject, but I'm wondering if it has more overhead or not than JsonValue.ReadFrom(InStream) -> JsonObject.Add(Key, JsonValue), it depends on whether JsonValue.ReadFrom(InStream) stores a "reference" to the MemoryStream or converts it into a String variable, so I'm thinking if it's possible to assign/copy-by-value only once the stream gets added to the final object or does it have the same time-complexity?
      There's also j.WriteTo(OutStream) which can bypass OutS.Write(Format(j)); but I like how you went full circle which explains the steps in between (this will be my go-to example for blobstreambase64textjson in the future). I'm just thinking which middle-steps can introduce unnecessary performance overhead, are there any good ones we can skip? :) (since I haven't used JsonValue/Token.ReadFrom/WriteTo with the stream parameter)

  • @matte1321
    @matte1321 2 года назад

    is there a way to make a full screen image appear for a few seconds instead of the standard message window? This is useful when in the warehouse you are reading barcodes remotely and you are not sure if the code has been found.

    • @Hougaard
      @Hougaard  2 года назад +1

      Could be done with Javascript.....

  • @LuisSanchez-ee2jp
    @LuisSanchez-ee2jp 2 года назад

    Hi, Erik.
    First of all thanks for all your wonderful vídeos.
    I am new to programming (learning by myself).
    I have search in the web how to build a web page and connect it to business central to retrieve for example the item list.
    The idea is to use html and javascript ( in order ro be cross platform).
    Would you be able to do a video.
    Thanks.

    • @Hougaard
      @Hougaard  2 года назад

      Why not just use BC, since it's alread web?

    • @artic5173
      @artic5173 2 года назад

      @@Hougaard Hi, Erik.
      It is because i want to create a web app to be able to work offline. So if it is connected i synchronize data of certain tables. And with that data the user can work offline and afterwards send data once connected.
      Thanks

    • @Hougaard
      @Hougaard  2 года назад

      So that's a task of designing multiple middle layers, not a small task :)