Code examples for Blob

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
154:	return blob.getBytes(1, (int) blob.length()); 
Full Snippet Info
7
CodeRank
26:	Files.write(f, blob.getBinaryStream()); 
Full Snippet Info
6
CodeRank
120:	result= "(blob of length "+obj.length()+")"; 
Full Snippet Info
6
CodeRank
116:	blob.truncate(0); 
117:	blob.setBytes(1, data); 
118:	rs.updateBlob(1, blob); 
Full Snippet Info
6
CodeRank
43:	returnValue = blob.getBytes(1, (int) blob.length()); 
Full Snippet Info
6
CodeRank
81:	is = blob.getBinaryStream(); 
82:	byte[] data = new byte[(int)blob.length()];		// byte[] data = new byte[is.available()]; 
Full Snippet Info
6
CodeRank
377:	assertEquals(length, b.length()); 
-
379:	assertEquals(100, b.getBytes(32*1024-27, 100).length); 
380:	assertEquals(1029, b.getBytes(19*1024, 1029).length); 
-
382:	assertEquals(new LoopingAlphabetStream(length), b.getBinaryStream()); 
383:	assertEquals(-1, b.position(new byte[] {(byte)'a', (byte)'A'}, 1)); 
384:	assertEquals(length, b.length()); 
Full Snippet Info
6
CodeRank
91:	if ( WrappedBlob.class.isInstance( blob ) ) { 
-
96:	&& BlobImplementer.class.isInstance( blob ); 
-
99:	st.setBinaryStream( index, blob.getBinaryStream(), (int) blob.length() ); 
-
102:	st.setBlob( index, blob ); 
Full Snippet Info
6
CodeRank
164:	final byte[] data = b.getBytes(1, (int) b.length()); 
Full Snippet Info
6
CodeRank
57:	return position(pattern.getBytes(0, (int) pattern.length()), start); 
Full Snippet Info
6
CodeRank
111:	return (new InputStreamReader(blob.getBinaryStream(), StandardCharsets.UTF_8)); 
-
113:	return (new InputStreamReader(blob.getBinaryStream(), encoding)); 
Full Snippet Info
6
CodeRank
43:	return aBlob.getBytes(1, (int) aBlob.length()); 
Full Snippet Info
6
CodeRank
26:	Files.write(f, blob.getBinaryStream()); 
Full Snippet Info
6
CodeRank
55:	return blob.getBytes(1, (int) blob.length()); 
Full Snippet Info
6
CodeRank
121:	result= "(blob of length "+obj.length()+")"; 
Full Snippet Info
5
CodeRank
80:	assertEquals( 2, blob.length() ); 
81:	assertEquals( 2, blob.getBytes( 1, 5 ).length ); 
82:	blob.getBinaryStream(); 
Full Snippet Info
5
CodeRank
61:	return aBlob.getBytes(1, (int) aBlob.length()); 
Full Snippet Info
6
CodeRank
23:	return IOUtils.toByteArray( b.getBinaryStream() ); 
Full Snippet Info
5
CodeRank
155:	byte[] bytePattern = pattern.getBytes(1, (int) pattern.length()); 
Full Snippet Info
6
CodeRank
144:	return blobData.getBinaryStream(); 
Full Snippet Info
5
CodeRank