Im sorry to misinform everyone but It is not an image i am trying to store. It is of type byte[] (byte array)
Maybe I said image because some say byte[] can be an image
how can i store a byte[] into a database?
Im sorry to misinform everyone but It is not an image i am trying to store. It is of type byte[] (byte array)
Maybe I said image because some say byte[] can be an image
how can i store a byte[] into a database?
It is still the same, byte[] can be either a executable file, image, docs, etc.
An array in java is an object. So to persist it on a database, insert it as a blob. research about object serialization and object persistence on a database if you want to know more.
Similar Threads |
|