I have created an EJB3 project and a JPA project. I\'m trying to create a helper class(which will be in a separate project/jar) that will return the Persistence Unit Name from the persistance.xml file
I have to pass an InputStream as a parameter to a 3rd party library, which will read the complete contents from the InputStream and do its job.
Hiho, i have to copy an inputstream. And after a bit of searching in the net, i tried this with the help of a bytearray. My code looks like this(\"is\" is the inputstream):
I have a Java program that creates a number of xml file and then zips them up and saves them to the file system.Later in the program I want to put that same zip file into a blob column of my oracle da
I have created a HttpModule to capture requests for auditing purposes. For Ajax requests to a web method I would like to also log the JSON data associated with the request.
This question already has answers here: How can I upload files to a server using JSP/Servlet? (14 answers)
It seems dirty to use an exception to indicate the end of a file has been reached. Every file we read has an end, so it doesn\'t seem exceptional or unexpected. Furthermore, I don\'t like using an exc
I have a robot and a GUI application running on a GUI. I have a while loop on the robot side that is constantly sending data to the GUI.
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing
I\'m having problems with sockets in java. I have a ServerSocket that is listening with accept() and spawns threads for each client-request. Communication between clients and the server works fine. I