-1

I have a table registration table with the profile image,name and other info. I also have a servlet which retrieves the infromation from the table and "adds" it to the ArrayList. Works well with string and other datatypes, but I'm at loss for how to implement the same for BLOB. I have passed the ArrayList with everything except the BLOB and works well. But I also implemented a Scriptlet with Image alone but now it shows only the image and does not show the ArrayList information.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Gireesh Pai
  • 87
  • 2
  • 10
  • This question should have code that you have written so far and specific problem you are facing. What have you tried? – Sap Jan 29 '18 at 07:51

1 Answers1

-1

What type is the retrieved blob? I guess it is byte[]? how you do it?

There is no actual need to implemented this with BLOB. If you don't have a restriction you better implemented with a base64 String, you can check here

but if you insist to go with the blob here is an example.

ddarellis
  • 3,912
  • 3
  • 25
  • 53
  • Base64 approach of serving images is terribly inefficient at all levels. Do not recommend this to starters. – BalusC Jan 29 '18 at 07:55