Adding error handling to writing/reading blob data.