posted 13 years ago
In the code below I'm reading an image file. The function readImageOldWay(file) reads the file into a byte array as shown by the class ImageService below the class ImageMain. I'm using BLOB datatype in the database to store the image but I'm getting an exception for images larger than 5kB approximately. Check the following code and the exception.
When I insert a bigger image say of size above 150kB, I get the following exception. What should I be doing to get rid of this exception? How can I insert bigger images?