Posts

Showing posts from April, 2022

Java : Use streams when it comes to Dynamic values

Image
 We have a combox who's values are numerical. If we select a value, then another combobox should generate the values based on it.  But, the second combox is getting dynamic values from a file (which is dependent on the user and can be changed).  When it comes to static, use sub-string for that splitting up the value and using "==" to match it with the number. But when it comes to dynamic, it's better to use index and streams to fetch the values. https://stackoverflow.com/questions/41134142/filtering-strings-from-an-array

Image file imported in Json through React disappears

Through form, After trying all methods of: 1) Entering image url in text field 2) Uploading document through text field.  The image is shown for some time or disappears once the page is refreshed.  Base64, turning the image into an object file, everything has been tried with no avail. We have finally done with JSON and switched out database to Firebase which loads our image on the web pages without disappearing in any way.