<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Hello,</div>
<div><br>
</div>
<div>I'm a little confused. The Java ByteBuffer doesn't have a limit of 8K bytes.  Do you mean a limit on the size of an NDN data packet?  The NDN data packet has a max size of 8800 (including content, signature, etc.)  This is due to network MTU size.  NDN
 handles this by dividing a file into segments.</div>
<div><br>
</div>
<div>Before I explain more, are you familiar with NDN segments and how NDN names segments?  These are described in section 3.2 of "NDN Technical Memo: Naming Conventions":</div>
<div><a href="http://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions">http://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions</a>/</div>
<div><br>
</div>
<div>Adding and parsing segment markers in names is supported in jNDN with Name.appendSegment and Name.Component.toSegment.</div>
<div><a href="http://named-data.net/doc/ndn-ccl-api/name.html#name-appendsegment-method">http://named-data.net/doc/ndn-ccl-api/name.html#name-appendsegment-method</a></div>
<div><a href="http://named-data.net/doc/ndn-ccl-api/name-component.html#name-component-tosegment-method">http://named-data.net/doc/ndn-ccl-api/name-component.html#name-component-tosegment-method</a></div>
<div><br>
</div>
<div>Other than supporing segments in names, jNDN does not yet have a utility to automatically send a file in segments or fetch a file with segments. This is a planned future higher-level API.  For now, the application must divide the file into segments and
 create names that have a segment marker.  In practice, each application may want to handle this differently. For example a real-time streaming video application may want to drop segments if the network does not deliver them.  But with a file transfer application,
 the appilcation may want to repeatedly try to fetch a segment if the fetch times out.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>- Jeff T</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Bassem Labib <<a href="mailto:bassem.labib@gmail.com">bassem.labib@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, October 23, 2014 at 9:15 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>" <<a href="mailto:ndn-interest@lists.cs.ucla.edu">ndn-interest@lists.cs.ucla.edu</a>><br>
<span style="font-weight:bold">Subject: </span>[Ndn-interest] Send and Receive Video using jNDN Client<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
I am trying to send and receive a video file using jNDN Client.<br>
</div>
There is a limitation of the ByteBuffer with max 8K bytes only!!<br>
How can I extend it without receiving it in the onTimeout state.<br>
<br>
</div>
 Best Regards,<br>
</div>
Bassem Labib<br>
</div>
</div>
</div>
</span>
</body>
</html>