Subversion Repositories SmartDukaan

Rev

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

Rev 9546 Rev 9547
Line 787... Line 787...
787
			File file = new File(SNAPDEAL_INVENTORY_SHEET);
787
			File file = new File(SNAPDEAL_INVENTORY_SHEET);
788
			MultipartEntity mpEntity = new MultipartEntity();
788
			MultipartEntity mpEntity = new MultipartEntity();
789
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
789
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
790
			mpEntity.addPart("file", cbFile);
790
			mpEntity.addPart("file", cbFile);
791
			post.setEntity(mpEntity);
791
			post.setEntity(mpEntity);
792
			response = client.execute(post);
792
			//response = client.execute(post);
793
			try {
793
			try {
794
				rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
794
				rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
795
			} catch (IllegalStateException e1) {
795
			} catch (IllegalStateException e1) {
796
				// TODO Auto-generated catch block
796
				// TODO Auto-generated catch block
797
				e1.printStackTrace();
797
				e1.printStackTrace();