You are here

getInputStream

public InputStream getInputStream() returns the input stream.

Parameters

None

Returns

Returns an InputStream object representing the input stream.

Example


    ServiceRegistry serviceRegistry = session.getServiceRegistry();             
    DocumentFolderService documentFolderService = serviceRegistry.getDocumentFolderService();   
    
    Node node = getTestNode(session, "ClimbingVolcanoes.JPG");     
        
    ContentStream cs = documentFolderService.getRenditionStream(node, RENDITION_THUMBNAIL);
    
    Log.d(TAG, "fileName: " + cs.getFileName());
    Log.d(TAG, "length: " + cs.getLength());
    Log.d(TAG, "mimeType: " + cs.getMimeType());
    
    InputStream is = cs.getInputStream();


      

Would produce output such as the following: