I saved a document bytea field in database, i use postgres. then how to retrive this pdf or how to convert byte to file. for example two people use a app means first person insert a pdf file from one phone then the pdf file is converted into file to byte and then saved. here second person wants to update or read that particular file inserted by first person is that possible, because the file is present in first person's mobile how to overcome this.