Subversion Repositories SmartDukaan

Rev

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

Rev 12262 Rev 12269
Line 227... Line 227...
227
    }
227
    }
228
 
228
 
229
    public String uploadBulkFile() throws IOException, TException{
229
    public String uploadBulkFile() throws IOException, TException{
230
        long uploadId = getTimeInMilliseconds();
230
        long uploadId = getTimeInMilliseconds();
231
        String userEmail = getUserEmail();
231
        String userEmail = getUserEmail();
232
        File fileToCreate = new File("/temp-uploads", "competition-scraping-"+String.valueOf(uploadId));
232
        File fileToCreate = new File("/temp-uploads", "competition-scraping-"+String.valueOf(uploadId)+".xls");
233
        FileUtils.copyFile(this.file, fileToCreate);
233
        FileUtils.copyFile(this.file, fileToCreate);
234
        FileInputStream iFile = new FileInputStream(new File(file.getAbsolutePath()));
234
        FileInputStream iFile = new FileInputStream(new File(file.getAbsolutePath()));
235
        HSSFWorkbook workbook = new HSSFWorkbook(iFile);
235
        HSSFWorkbook workbook = new HSSFWorkbook(iFile);
236
        HSSFSheet sheet = workbook.getSheetAt(0);
236
        HSSFSheet sheet = workbook.getSheetAt(0);
237
        Map<Long,CompetitorPricing> itemScrapingMap = new HashMap<Long,CompetitorPricing>();
237
        Map<Long,CompetitorPricing> itemScrapingMap = new HashMap<Long,CompetitorPricing>();