BBjImage::getBytes
Description
In BBj 11.00 and higher, this method returns the raw image bytes from a BBjImage.
Syntax
| 
                                                             Return Value  | 
                                                        
                                                             Method  | 
                                                    
|---|---|
| 
                                                             byte[]  | 
                                                        
                                                             getBytes(string format)  | 
                                                    
Parameters
| 
                                                             Variable  | 
                                                        
                                                             Description  | 
                                                    
|---|---|
| 
                                                             format  | 
                                                        
                                                             Name of a standard image format (bmp, gif, jpeg, png, tiff, wbmp)  | 
                                                    
Return Value
Returns the raw image bytes in the requested format.
Remarks
Methods that return byte[] can usually be treated as if they returned string, because BBj automatically handles the conversion. However, when that byte[] value is directly assigned to an object variable or passed to a Java method, BBj skips the conversion and the raw internal byte[] format is used. You can always use the STR() function to explicitly convert the byte[] value to a string.
Example
                                                     | 
                                                
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.