Added handling of BLOB-files located in the classpath

Cherry-picked the change from master branch because it also would work in 3.0.x