Skip to content

How can i delete firebase child node with the same name?Get the key to be delited from one node and delete those node with same key from the other

I want to delete all the child nodes form different nodes with the same names. I used the following code to get the keys of the child nodes to be deleted and pass it to the other node but it is deleting them from both nodes(completedSurveys and surveyList). Attached below is the firebase realtime database str…

How to convert binary payload (file) to byte[] in java?

I receive json data that contains binary data like that ,and I would like to convert that data to byte[] in java but I don’t know how ?. Answer Based on the observation that the “binary” string consists of ASCII letters, digits and “+” and “/”, I am fairly confident t…

How to use blocking queue in Spring Boot?

I am trying to use BlockingQueue inside Spring Boot. My design was like this: user submit request via a controller and controller in turn puts some objects onto a blocking queue. After that the consumer should be able to take the objects and process further. I have used Asnyc, ThreadPool and EventListener. Ho…