How to convert BLOB to Byte Array in java?

Ramu Prasad
Updated on 30-Jul-2019 22:30:20

6K+ Views

You can contents of a blob into a byte array using the getBytes() method.Exampleimport java.awt.Image; import java.awt.image.BufferedImage; import java.sql.Blob; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.util.Arrays; public class BlobToByteArray { public static void main(String[] args) throws Exception { Image image = new BufferedImage(300, 400, BufferedImage.TYPE_INT_RGB); String JDBC_DRIVER = "com.mysql.jdbc.Driver"; String DB_URL = "jdbc:mysql://localhost/mydb"; String USER = "root"; String PASS = "password"; ... Read More

What should I prefer to connect to SAP HANA database- extended services or other ODBC technique?

SAP Expert
Updated on 30-Jul-2019 22:30:20

124 Views

As you had already mentioned that extended services are natively integrated with HANA, so it’s going to be easier to use against HANA but as it is native to HANA only it can’t be used elsewhere.  It will be faster when you compare it against ODBC because the extra step will be avoided here as it is native to HANA. Also, as it is integrated other factors like latency and other would be out of question which can be considerable factors with ODBC.Extended Services follow the MVC architecture so you need not worry about the implementation style as it will ... Read More

What is the difference between JavaScript and ECMAScript?

Sreemaha
Updated on 30-Jul-2019 22:30:20

3K+ Views

JavaScriptJavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name LiveScript. The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers.The standard of scripting languages like JavaScript is ECMAScript.ECMAScriptThe full form of ECMA is European Computer Manufacturer's Association. ECMAScript is a Standard for scripting languages such as JavaScript, JScript, etc. It is a trademark scripting language specification. JavaScript is a language based on ECMAScript. A standard for scripting ... Read More

Standards for maintaining Customer Repository Objects in SAP

Nitya Raut
Updated on 30-Jul-2019 22:30:20

99 Views

The Y-namespace is meant to be used for centrally developed solutions or also known as head office while the Z-namespace is used for local developed solutions or also known as branch office. But at the end of day, it all depends on the developer how he uses it.

Using memory analyzer in SAP

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

204 Views

There are lots of free and proprietary tools to do the same. You can use Memory Analyzer project done by SAP. It lets you find memory leaks against in-memory objects via simple SQL statements. Also, you can use JHAT (Java Heap Analysis tool) command line tool to examine the memory. It lets you examine heap memory via histogram and can be of good help. Also, you can go for HeapWalker from Netbeans or Visual VM. Also, Eclipse has Eclipse memory analyzer which is a freeware and can handle good size with dump and provides a fair deal of memory analysis.Read More

Does Process before output and process after input initiate commits in ABAP?

SAP Expert
Updated on 30-Jul-2019 22:30:20

146 Views

Yes, the PBO-PAI triggers commit so your requirement will fail. You need to make changes to your current implementation to avoid the auto-commit.

What are Java classes?

Giri Raju
Updated on 30-Jul-2019 22:30:20

531 Views

A class in Java is a user-defined datatype, a blueprint, a classification, that describes the behavior/state that the object of its type support. Example public class Dog { String breed; int age; String color; void barking() { } void hungry() { } void sleeping() { } } A class can contain any of the following variable types. Local variables − Variables defined inside methods, constructors or blocks are called local ... Read More

How to convert an Array to a Set in Java?

Sai Subramanyam
Updated on 30-Jul-2019 22:30:20

2K+ Views

One solution to add an array to set is to use the addAll() method of the Collections class. This method accepts a collection and an element and, it adds the given element to the specified Collection. Example Live Demo import java.util.Collections; import java.util.HashSet; import java.util.Set; public class ArrayToSet { public static void main(String args[]) { Integer[] myArray = {23, 93, 56, 92, 39}; Set set = new HashSet(); Collections.addAll(set, myArray); System.out.println(set); } } Output [23, 39, 56, 92, 93]

What is the difference between JavaScript, JScript & ECMAScript?

Giri Raju
Updated on 30-Jul-2019 22:30:20

781 Views

JavaScriptJavaScript is a language based on ECMAScript. A standard for scripting languages like JavaScript, JScript is ECMAScript. JavaScript is considered as one of the most popular implementations of ECMAScript.ECMAScriptThe full form of ECMA is European Computer Manufacturer's Association. ECMAScript is a Standard for scripting languages such as JavaScript, JScript, etc. It is a trademark scripting language specification.JScriptJScript released in 1996 by Microsoft, as Microsoft’s dialect of ECMAScript. JScript and JavaScript are different names for the same language. They have different names to avoid trademark issues.

What is the open/standardized file format for exporting invoices in SAP ERP System?

Sharon Christine
Updated on 30-Jul-2019 22:30:20

103 Views

SAP uses IDoc known as an intermediate document to exchange data between logical systems. If your system involves non-SAP systems as well, then IDoc can be used as a standard interface for data exchange between SAP and non-SAP systems.IDoc is a container for information exchange. IDoc is made by message type and method of Objects when information is to be exchanged. The message type is the configuration in which the information for a particular business process is transmitted electronically. An IDoc consists of several data segments, headers and status records. Also, it can be extended by extending IDoc types to add ... Read More

Advertisements