Prev: Flakey behavior selecting command window under Linux
Next: Overlaying a pcolor plot to a tif image
From: Jeffrey on 18 May 2010 20:06 "Anju prabhu" <anjuarathy(a)gmail.com> wrote in message <hnfaj2$hhp$1(a)fred.mathworks.com>... > hai, > I would like to know how to insert images into mysql database and how to retrieve and display the inserted images. > How to display the image that is converted into binary format? > How to set the password field in matlab? > > Thanks in advance for your help. You can grab mym, the matlab<->mysql connector then the code would be as simple as mym('insert into table t1 (id, pic) values ("{S}","{F}")',rowid, 'path/filename.jpg') OR if your image is already a matlab matrix mym('insert into table t1 (id, pic) values ("{S}","{M}")',rowid, imgvarname) It is a bit hard to find mym v1.36 right now, but hopefully the latest version will be up on the sourceforge site soon.
|
Pages: 1 Prev: Flakey behavior selecting command window under Linux Next: Overlaying a pcolor plot to a tif image |