Hi Isomorphic,
can you please help me with this.
I have to compare if two blob data are the same.
Using v12.0p_2019-04-03/PowerEdition Deployment (built 2019-04-03) and ORACLE database.
ds.xml.
	I fetch two rows. Both rows contain the same "DATA"-field.
Server side
	Do you have some hint?
Thanks in advance!
Pavo
							
						
					can you please help me with this.
I have to compare if two blob data are the same.
Using v12.0p_2019-04-03/PowerEdition Deployment (built 2019-04-03) and ORACLE database.
ds.xml.
Code:
	
	<field name="DATA" type="binary" required="true" maxFileSize="8388608" />
Server side
Code:
	
	DSRequest request = new DSRequest("datasource", DataSource.OP_FETCH);
DSResponse response = request.execute();
Map<String, Object> firstMap = (Map<String, Object>) response.getRecords().get(0);
Map<String, Object> secondMap = (Map<String, Object>) response.getRecords().get(1);
//type of the o1 is: oracle.jdbc.driver.OracleBlobInputStream@66cd9398
Object o1= firstMap.get("DATA");
//type of the o2 is oracle.jdbc.driver.OracleBlobInputStream@7f3fe447
Object o2= secondMap.get("DATA");
//I need somehow get byte[] from OracleBlobInputStream
//byte[] byte1=o1.toString.getBytes(); is ofcourse wrong
..
..
..
Thanks in advance!
Pavo
Comment