Skip to Main Content
HCL Domino 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

Status Under Consideration
Workspace Domino Designer
Categories LotusScript
Created by Guest
Created on Jul 25, 2018

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.

  • Attach files
  • Guest
    Reply
    |
    Sep 21, 2020
    1. DNEXT-441 (investigate)

  • Guest
    Reply
    |
    Aug 6, 2018

    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
    Reply
    |
    Aug 6, 2018

    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
    Reply
    |
    Jul 26, 2018

    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
    Reply
    |
    Jul 25, 2018

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