Hi

I want to create a code so that the user can upload an image. The code then resizes it and then stores it as a blob in my database.

The code I'm using

I have done everything, but need to know which variable (in the link) to store into the blob in my mysql database. I don't want imagejpeg() to create the pictures in a /images/ folder, like this code does, I want the data in a variable and then store it as a blob.

How do i assign a variable the "raw" data (like opening an image in notepad.exe) from the created and resized images?

Just thinking:
Maybe it's better to have the thumbnails and resized pictures in a folder, insted of in a database as a blob?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.