Subversion Repositories SmartDukaan

Rev

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

Rev 9517 Rev 9518
Line 760... Line 760...
760
			} catch (IOException e) {
760
			} catch (IOException e) {
761
				// TODO Auto-generated catch block
761
				// TODO Auto-generated catch block
762
				e.printStackTrace();
762
				e.printStackTrace();
763
			}
763
			}
764
			post = new HttpPost("http://seller.snapdeal.com/inventory/upload");
764
			post = new HttpPost("http://seller.snapdeal.com/inventory/upload");
765
			File file = new File("/root/code/trunk/SnapDealFeeds/SellerInventory.xls");
765
			File file = new File(SNAPDEAL_INVENTORY_SHEET);
766
			MultipartEntity mpEntity = new MultipartEntity();
766
			MultipartEntity mpEntity = new MultipartEntity();
767
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
767
			ContentBody cbFile = new FileBody(file,"application/vnd.ms-excel");
768
			mpEntity.addPart("file", cbFile);
768
			mpEntity.addPart("file", cbFile);
769
			post.setEntity(mpEntity);
769
			post.setEntity(mpEntity);
770
			response = client.execute(post);
770
			response = client.execute(post);