Subversion Repositories SmartDukaan

Rev

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

Rev 10164 Rev 10165
Line 935... Line 935...
935
				MultipartEntity mpEntity = new MultipartEntity();
935
				MultipartEntity mpEntity = new MultipartEntity();
936
				ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
936
				ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
937
				mpEntity.addPart("file", cbFile);
937
				mpEntity.addPart("file", cbFile);
938
				post.setEntity(mpEntity);
938
				post.setEntity(mpEntity);
939
				System.out.println("Before posting file");
939
				System.out.println("Before posting file");
940
				HttpResponse response;
940
				HttpResponse response=null;
941
				try {
941
				try {
942
					response = client.execute(post);
942
					response = client.execute(post);
943
				} catch (ClientProtocolException e2) {
943
				} catch (ClientProtocolException e2) {
944
					System.out.println("Error While Posting Inventory File");
944
					System.out.println("Error While Posting Inventory File");
945
					e2.printStackTrace();
945
					e2.printStackTrace();