Subversion Repositories SmartDukaan

Rev

Rev 9513 | Rev 9515 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9513 Rev 9514
Line 760... Line 760...
760
		File file = new File("/root/code/trunk/SnapDealFeeds/SellerInventory.xls");
760
		File file = new File("/root/code/trunk/SnapDealFeeds/SellerInventory.xls");
761
		MultipartEntity mpEntity = new MultipartEntity();
761
		MultipartEntity mpEntity = new MultipartEntity();
762
	    ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
762
	    ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
763
	    mpEntity.addPart("file", cbFile);
763
	    mpEntity.addPart("file", cbFile);
764
	    post.setEntity(mpEntity);
764
	    post.setEntity(mpEntity);
765
		//response = client.execute(post);
765
		response = client.execute(post);
766
		try {
766
		try {
767
			rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
767
			rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
768
		} catch (IllegalStateException e1) {
768
		} catch (IllegalStateException e1) {
769
			// TODO Auto-generated catch block
769
			// TODO Auto-generated catch block
770
			e1.printStackTrace();
770
			e1.printStackTrace();