Use this constructor to do optimized streaming based on shared memory blocks.
f as FolderItem,
write as Boolean,
buffer as MemoryBlock)
- The FolderItem to work with
- Set this parameter to true if you want to open the stream for writing, otherwise its opened for reading.
- This you may want to use if you are doing optimized streaming that is based on sharing memory blocks. If you do not set this parameter then a default memory block with 4096 bytes is created internally.
To know if creating a valid LongBinaryStream was successful then always check the LastError property of the object right after constructing it.