1
Answer

Casting

sleggbengt

sleggbengt

20y
1.6k
1
Hi! I'm working with databases and I'm having trouble when inserting images into the Database. The problem lies in an image becomes a binary array in the database, but I want it to appear as a Bitmap, Jpeg, PNG or something. I know that it's possible to extract the binary array and the deserialize it into an image again, but this is something I don't want to do. I know that you can Cast a variable into something else from what it is. Is it possible toi cast an object into something else, e.g. an Image Object into a Bitmap? I really hope that someone has any idea about this. Thanks!
Answers (1)