private int stripMultipartHeaders(byte[] b, int offset) {
			int i = 0;
			for (i = offset; i < b.length; i++) {
				if (b[i] == '\r' && b[++i] == '\n' && b[++i] == '\r'
						&& b[++i] == '\n')
					break;
			}
			return i + 1;
		}
It returns the offset separating multipart file headers from the
file's data.
selendroid-standalone/src/test/java/io/selendroid/standalone/server/support/NanoHTTPD.java