A database has stored an image as binary. I'm looking to convert it back to a JPEG in PHP. Does anyone know how this might be accomplished?
I'm aware this might be something that I can find through Google but I have not yet tracked down an answer and thought it would be best to hedge my bets and ask a question here.
If I find out before I get a response, I will post the solution here.
fopenspecifying the binary flag, it should render properly.file_put_contents()to send the data back into a file. Or is there some stumbling stone you didn't mention? What does "binary" mean for you?