Problem converting images to screen / variable ...

See all posts See thread Reply

Re: Problem converting images to screen / variable ... new!
by Stefan, 15 years, 6 months ago
I saw I forgot to take out the first call in my sample just after I posted ;-)

So, what you say is I have to store the converted/resized image on disk first, then read it into a variable for further processing, like store it into the db etc ... Correct ?

This I got working just fine in my tests so I guess I can proceed then :)
Thank's for a great tool and super great support and responce time!

FYI ... I spent last few days looking all over for something like this and I found quite a few similar tools, but nothing I was too happy with ... Until I found out about you and class.upload !!!

Lucky me ;-)

Thanks Colin!!!Reply
Re: Problem converting images to screen / variable ... new!
by colin, 15 years, 6 months ago
No, what I am saying is that you can either:
- call process() once, without any argument, in order to get the image content, and store in in the database.
- call process() a first time to store the file on disk, and then call it a second time to store the image in the database.

You probably want the first solution, since I don't think that you need to also store the file on disk. You don't need to store the file on disk to read it back and store it in the database. Calling process() without argument does that for you (without even storing the image on disk).

And if you like the class so much, feel free to spread the word about it! And if you like my response time, also feel free to support the class by donating ;)Reply