Doubt How to Recover Data in blob format and display in jsp

Asked

Viewed 291 times

0

Good Staff I am with a very critical doubt I am not managing to recover the data from a field of my database that has the format blob I read some documentations but I could not understand very much I wonder if someone can give me a hint or even some example so that I can direct myself, I am using mysql as database.

  • You know what kind of information has been stored (image, video, audio...)?

  • I know if text and image have been stored

  • text and image in only one BLOB field or only the image is in the BLOB field?

  • text and image in only one BLOB field

  • Expensive, complicated. Because a blob field is just a byte array and to convert it back you need to know the type. If it’s just an image, just mount it to a native Java object. But being two values in just one blob I can only imagine creating a class with two attributes of different types (String, File) to serialize it and then send it to a blob and read it back. Therefore, you need to know how it was stored EXACTLY to make the reading process.

  • Putz is why it was not I who assembled this structure only what I know of the structure and that the field is array of bytes

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.