470 / 5000
I’m facing a curious issue in my application. I have an application in JAVA + TOMCAT, which at a certain point reads an image from a database, this image is stored as a BLOB and in JAVA I read it as a byte.
Interestingly at this time my application crashes, it does not go beyond this point and this only occurs when I am with the default network, if I am with network_mode=host this crash does not occur.
The database is external
Anyone can help me to solve this ?
version: '3' services: portal: image: registry.gitlab.com/XXXXX/containers/XXXXX:latest container_name: XXXX # network_mode: host extra_hosts: - "PORTAL_DATABASE:172.16.12.105" ports: - "8080:8080" networks: - internet networks: internet: driver: bridge
... byte logo = this.getNamedParameterJdbcTemplate().queryForObject( query.toString(), params, byte.class ); ....