'Note that this code fragment assumes a ORABFILE object as the result of a 
'dynaset operation. This object could have been an OUT parameter of a PL/SQL 
'procedure. For more information please refer to chapter 1: 
 
Dim OraDyn as OraDynaset, OraMusic as OraBFile, amount_read%, chunksize%, chunk 
 
chunksize = 32767 
Set OraDyn = OraDb.CreateDynaset("select * from Multimedia_tab", ORADYN_DEFAULT) 
Set OraMusic = OraDyn.Fields("Music").Value 
 
If OraMusic.IsOpen then 
  'Processing given that the file is already open: 
Else 
   'Processing given that the file is not open, or return an error: 
End If 
