display an image stored in the database with Java -


I have a problem when I want to display the image stored in the database in Java with OAL.

If your image data is stored in your database in the form of some blob, then you might use it And it can be used by byte [] imageData constructor:

ImageIcon (byte [] imageData)

An image icon creates an array of bytes which was read from an image file, in which a supported image format, such as GIF, JPEG, or PNG (as of 1.3)


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -