+ 2
Can anyone help me to store and retrieve a file in database with file path in java
Store in d://a. Img and retrieve from d://a. Img path come from datbase
2 Respuestas
+ 1
You can use Blob Datatype in database to store any kind of file. For java code you will need to fetch file using filepath and den convert that file into binarystream. Send this binary stream to database using PreparedStatement. I will send you code for the same. Remain updated.!!! 😁😁
0
Either you can store the image file path or the total image as a blob in databases. you cannot dictate database to store and retrieve an image file from a particular path because Database systems implement their own file system.