Welcome to the #dominoforever Product Ideas Lab! 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 jointly by the IBM & 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.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jul 25 2018
  • Attach files
  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    25 Jul 21:57

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

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    26 Jul 01:01

    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.

  • Admin
    Thomas Hampel commented
    06 Aug 14:03

    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. 

  • Avatar40.8f183f721a2c86cd98fddbbe6dc46ec9
    Guest commented
    06 Aug 23:13

    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.