Byte-Range serving | Compression: NONE

Hello, Community!

I need to attach video files to documents and then have them available with Byte-Range serving, as stated here:

http://www-12.lotus.com/ldd/doc/domino_notes/rnext/help6_admin.nsf/f4b82fbb75e942a6852566ac0037f284/8cde96ea102d108285256c1d00397d82?OpenDocument

But I faced with the issue that files like .wmv – became compressed in the documents (Compression: LZ1 showed in scanEZ), and as result - not bytes-range served.

Addtional info:

This is XPages application, and files uploaded via xp:fileUpload control (on Domino 9).

LZ1 compression is disabled on NSF DB.

Also “Compress on upload” disabled in Web Site document…

Any ideas, how to disable that compression? Really need community support!

Thanks!

Subject: Answer: workaround

In case you have the same issue - I’m posting the solution (workaround):

After portion of testing, I see only the two following prerequisites for getting attachments not compressed in documents after uploading them from XPage:

  1. When declaring DataSource on XPage, the following code has to be included:

postNewDocument=“#{javascript:fileDS.getDocument().convertToMIME()}”

  1. xp:fileUpload control has to target to “Body” field (and only “Body” field)!

So, code on XPage should look like something below:

xp:this.data

<xp:dominoDocument

    var="fileDS"

    formName="fileContainer"

    postNewDocument="#{javascript:fileDS.getDocument().convertToMIME()}">    

</xp:dominoDocument>

</xp:this.data>

<xp:fileUpload id=“fileUpload1” value=“#{fileDS.Body}”></xp:fileUpload>

By fulfilling these prerequisites, files uploaded decompressed to documents, as result accessing them by the link like:

http://hostname/dbname/docUNID/$FILE/fileName.ext

Domino serve them with byte ranges (Accept-Ranges: bytes – showed in Response Headers)

Thanks to Sven Hasselbach for providing me with this solution!

More info here: