1.how to convert a jpg to blob
2.update oracleDB with the blob.
3. retrive the blob
4.save that in disk as a jpg file.
1.) Save as a ByteArray/ByteStream
2.) Simple Insert/Update statement will do it
3.) Simple select command will do it
4.) Write out as a ByteStream/ByteArray
You really need to look into the File I/O APIs an pay particular attention to _encoding_, e.g. Make sure your encoding is consistent throughout each stage.
This article can help and make sure to look at our I/O FAQ