Changed preprocessing to read from blob