Code example for FileInputStream

0
	} 
 
	public void upload(String filename, String server, JSONObject params, final String fileKey, final String fileName, final String mimeType, String callbackId) {
		File uploadFile = new File(filename);
		try { 
			FileInputStream fileInputStream = new FileInputStream(uploadFile);
			upload(fileInputStream, server, params, fileKey, fileName, mimeType, callbackId);
		} catch (FileNotFoundException e) {
			Log.e("PhoneGapLog", "error: " + e.getMessage(), e); 
		} 
 
	} 
	 
	 
	public void upload(InputStream fileInputStream, String server, JSONObject params, final String fileKey, final String fileName, final String mimeType, final String callbackId) {
		try { 
 
			String lineEnd = "\r\n"; 
			String td = "--"; 
			String boundary = "*****com.beetight.formBoundary"; 
Contextual code suggestions in your IDE  Get Codota for Java