To convert InputStream to String, you can use the BufferedReader to read the InputStream and return a String.

Example

package com.mkyong;
 
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
 
public class InputStreamToStringExample
{
    public static void main(String[] args) throws IOException
    {	
    	//intilize an InputStream
    	InputStream is = new ByteArrayInputStream("file content".getBytes());
 
    	//read it with BufferedReader
    	BufferedReader br
        	= new BufferedReader(
        		new InputStreamReader(is));
 
    	StringBuilder sb = new StringBuilder();
 
    	String line;
    	while ((line = br.readLine()) != null) {
    		sb.append(line);
    	} 
 
    	System.out.println(sb.toString());
 
    	br.close();
    }
}
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~