Skip to content

Instantly share code, notes, and snippets.

@tsegismont
Created October 10, 2013 13:11
Show Gist options
  • Select an option

  • Save tsegismont/6918069 to your computer and use it in GitHub Desktop.

Select an option

Save tsegismont/6918069 to your computer and use it in GitHub Desktop.
ContentManagerRemote
/**
* Creates a temporary file for fragmented content upload.
*
* @return a temporary file handle
*/
String createTemporaryContentHandle();
/**
* Saves the fragment in the temporary file denoted by <code>temporaryContentHandle</code>.
*
* The <code>fragment</code> bytes will be copied starting from the <code>off</code> index up to the minimum of
* <code>off+len</code> and <code>fragment.length</code>.
*
* @param temporaryContentHandle temporary file handle
* @param fragment fragment bytes
*/
void uploadContentFragment(String temporaryContentHandle, byte[] fragment, int off, int len);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment