hi!
normally i use php and script languages for programming but i need you help, what's wrong with the source code below? the function memoread gives the file(jpeg) back and i want to save it in mysql. Daten is a longblob and name ist char(40).
?sqlcon("scanner"
MODIFY COMMAND C:\Programme\vfp\MEMOREAD.PRG
inhalt=memoread('klein.jpg')
?inhalt //gives silly source back what'S normal
?sqlexec(1,"insert into container (daten,name) values (inhalt,'klein.jpg')"
my second question is how i can get the mime typ of a file for storing it in mysql like plain/text or image/pjpeg?
thx
michi
normally i use php and script languages for programming but i need you help, what's wrong with the source code below? the function memoread gives the file(jpeg) back and i want to save it in mysql. Daten is a longblob and name ist char(40).
?sqlcon("scanner"
MODIFY COMMAND C:\Programme\vfp\MEMOREAD.PRG
inhalt=memoread('klein.jpg')
?inhalt //gives silly source back what'S normal
?sqlexec(1,"insert into container (daten,name) values (inhalt,'klein.jpg')"
my second question is how i can get the mime typ of a file for storing it in mysql like plain/text or image/pjpeg?
thx
michi