Is BLOB is the only data type by which an image can be stored in database.What is the advantage of using BLOB.What about portability in BLOB datatype.Please give tutorial based on image storage.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Besides storing bytes in a Blob typed column, another way could be to convert the bytes into
Base64string and simply store that string in a Text typed column. And regarding portability, you decide which one’s better and you prefer. Personally I like to play with strings rather than bytes 🙂To convert image into Base64 string:
To convert Base64 string into image: