#dominoforever | Product Ideas Portal

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Expand 64K limit of array (LotusScript)

I heard that there is a plan to use LotusScript to access the camera of the device. I'd like you to extend the array limit to handle files larger than 64 K.

  • Guest
  • Jul 25 2018
  • Under Consideration
  • Attach files
  • Admin
    John Curtis commented
    21 Sep, 2020 07:23pm
    1. DNEXT-441 (investigate)

  • Guest commented
    6 Aug, 2018 11:13pm

    I would like to upload files to IBM Connections etc. using something like the sample shown above. However, uploading files larger than 64 KB will be damaged. There is a reply from support that it is a language restriction and it can not be implemented.
    I would like you to ease this restriction to the extent that you can handle files of real size.
    I would be happy if I could natively upload files of real size using HTTP POST method from LS.

  • Admin
    Thomas Hampel commented
    6 Aug, 2018 02:03pm

    You might not be able to use the XMLHTTP object on a mobile device, instead you should be using the new LotusScript classes which allow HTTP get/put/post requests natively from LS. Furthermore it needs to be questioned if the LS methods for accessing the camera will return a file on disk or if it will represent a new object by itself that you can use to use in conjunction with the HTTP post method. 

  • Guest commented
    26 Jul, 2018 01:01am

    One limitation of LotusScript is an array boundary.
    It shows with simple code.


    Dim stream as NotersStream
    Dim xhr as Variant
    Const url = "https://hogehoge.com/uploadTarget"
    Const filepath = "size_gt_64kb.pdf"

    Set stream = ss.Createstream()
    stream.Open filepath, "binary"
    Set xhr = CreateObject("Microsoft.XMLHTTP")
    xhr.Open "POST", url, False
    xhr.send stream.read


    "stream.read" returns an array of bytes.
    However, since LotusScript has limitations on array boundaries, if the size of the file to be read is less than 64 KB, you can upload normally, but if the size exceeds 64 KB, the file will be damaged. I think that it is an array boundary limitation, but it may be a limitation of NotesStream class.

    As a future enhancement, I heard that LotusScript classes are planned for accessing the device's camera and posting on http. However, the image taken with the camera of the latest device will be larger than 64 KB.
    I'd like to upload pictures taken with the device to the website, but if you do not extend the current restrictions it will not be possible with LotusScript alone.

  • Guest commented
    25 Jul, 2018 09:57pm

    Sorry, don’t understand. What is the relation between the camera and the limit on an array? And an array handling files?