Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

JavaInputStreamMBS class

Super class: JavaObjectMBS

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Java Database MBS Java Plugin 13.1 Yes Yes Yes Yes No
Function: 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
Notes:
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.

Feedback, Comments & Corrections

Super class JavaObjectMBS

This class has no sub classes.

Some methods using this class:

Some examples which use this class:


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


JavaHandleNilExceptionMBS   -   JavaIntArrayMBS




Links
MBS FileMaker tutorial videos