I have saved data as a byte array in my database, but when retrieving it, the byte array is incorrect. The column in the database is of type LONG BLOB.
** please dont copy paste from the ChatGPT solution. **
I have saved data as a byte array in my database, but when retrieving it, the byte array is incorrect. The column in the database is of type LONG BLOB.
** please dont copy paste from the ChatGPT solution. **
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted May 22, 2024, 9:52 AM
Check this:
Ishika TiwariPosted May 22, 2024, 5:32 AM
In obj. TINCopies, I am storing a byte array of a PDF. I convert it to base64 to save in the database.
Now I am facing a problem retrieving this byte array.
Thanks for your response !
Amit MohantyPosted May 21, 2024, 1:42 PM
Hey Ishika, you please provide the code to save an image or PDF file to a database so that we can better understand the issue?