Создание файла больше 4 гб

Автор Тема: Создание файла больше 4 гб  (Прочитано 6694 раз)

GlooMMy

  • Участник
  • **
  • Сообщений: 30
    • Просмотр профиля
Создание файла больше 4 гб
« : 09 Март 2010, 11:51:41 »
У меня есть база 5 гб, на ее основе создаю dxl файл,при его создании предварительно создается файл *.tmp, который доходит до 4 гб и дальше никак. . По идеи он должен больше весить, я предполагаю, что в районе 7-10 гб.
Как настроить, чтобы размер не ограничивался 4-мя гигами?
Файловая система NTFS, вроде как она поддерживает файлы больше 4-ех.
В настройках лотуса смотреть или он тут не причем? Может настройки notes.ini?
« Последнее редактирование: 25 Март 2010, 12:33:54 от GlooMMy »


ViV

  • Global Moderator
  • Профессионал
  • *****
  • Сообщений: 1428
  • Владимир Егоров
    • Просмотр профиля
    • lotusnotes.ru
    • E-mail
Re: Создание файла больше 4 гб
« Ответ #2 : 01 Апрель 2010, 10:22:17 »
Спасибо за ссылку!

На всякий случай публикую текст с этой ссылки:
Цитировать
NotesStream Class, Write and WriteText Methods fail silently beyond 4 GB of text

ProblemThe Write / WriteText Methods of the LotusScript NotesStream Class have a limit of 4GB, and there is no indication when the limit is reached. The WriteText
Method doesn't raise an error, and it continues returning positive values indicating that data was written to the stream, even when it really was not.

SymptomNo error message, text is truncated.

Resolving the problemThis information is based on SPR LAMY7ZXK9B.

By way of workaround, you can use other file functions such as the Open statement in connection with Print# statement, which are able to create files larger than 4GB. You can also code in Java instead, which has a different (Java standard) stream class available. For example:

import lotus.domino.*;
Stream outStream = session.createStream();
outStream.writeText("Hello, World");
outStream.close();