Platforms to show: All Mac Windows Linux Cross-Platform

JavaInputStreamMBS class

Super class: JavaObjectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Java Database MBS Java Plugin 13.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The plugin class for an inputstream.
Example
// your result set
dim r as JavaResultSetMBS

// get binary data for BLOB column nameed 'data'
dim myInputStream as JavaInputStreamMBS = r.getBinaryStream( "data" )
if myInputStream <> nil Then

// read byte for byte in a loop
// better use other read() method with buffer
dim data as string

Do
dim c as Integer = myInputStream.read
If c = -1 then exit

data = data + chrb(c)
Loop

Dim myPicture as Picture = Picture.FromData(data)

// work with picture here
End If

This abstract class in java is the superclass of all classes representing an input stream of bytes.
Subclass of the JavaObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Super class JavaObjectMBS

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS Java Plugin.


JavaHandleNilExceptionMBS   -   JavaIntArrayMBS


The biggest plugin in space...