f



Inserting Image in MySQL Using MATLAB

Hello Everybody,
I am working on connecting MATLAB with MySql so that I can insert an image into a table of MySql using Matlab.The code which I have used is given below...

%test is my database name
%TrainDB is the name of my Table(id primary key, Image BLOB)

I = imread ('C:/sample_files/temp.jpg');
whos I
bdata = reshape(I,[],1);
conn = database('test', 'root', 'root',...
   'com.mysql.jdbc.Driver', ...
   'jdbc:mysql://localhost/test');
fastinsert(conn,'TrainDB',{id,'Image'},{1,bdata})

close(conn);


The code isn't working..Can someone tell me for that reason why??? And hpe can I make it work?
0
Ankit
10/8/2010 11:14:07 AM
comp.soft-sys.matlab 211266 articles. 24 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
1864 Views

Similar Articles

[PageSpeed] 30

Reply:

Similar Artilces:

inserting images into mysql database using matlab
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. > hai, > I would like to know how to insert images into > 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. This code...

How to insert an Image in mysql through matlab file
Hi all, I am getting error "??? No constructor java.io.File with matching signature found Error in ==> test4 at 34 File image = new File('C:/images/5.jpg');" while i am trying to read a image from local directory ad putting into mysql table i am using part of code to do insertion of image to table and getting error has i mentioned above result = (exec(dbConn, 'insert into picture values(?,?)')); setString(1,'11'); File image = new File('C:/images/5.jpg'); FileInputStream fis = new FileInputStream(image); setBinaryStream(2,f...

Can you use zlib from Matlab, only using native Matlab code?
Hello, I'm trying to decompress a file using zlib, for use by my Matlab function. Currently I'm doing it by calling Python midway through my function, but I would like to make it so that I don't need to have Python installed on whatever computer I'm trying to run my function on. I was wondering if there was a way for me to use zlib just using native Matlab code. I don't know much about compression/decompression, so I'm open to any suggestions. I've been searching around for a while, and haven't found anything. Thanks very much ...

Can you use zlib from Matlab, only using native Matlab code? #2
Hello, I'm trying to decompress a file using zlib, for use by my Matlab function. Currently I'm doing it by calling Python midway through my function, but I would like to make it so that I don't need to have Python installed on whatever computer I'm trying to run my function on. I was wondering if there was a way for me to use zlib just using native Matlab code. I don't know much about compression/decompression, so I'm open to any suggestions. I've been searching around for a while, and haven't found anything. Thanks very much On Tue, 05 May 2009 15:24...

Creating DLL in Matlab and using them in Matlab?
Hi, is it possible to create dll in Matlab and then using it in other Matlab apllication? I've made a simple function and put it into dll. But when I try to use this library in other apllication written in matlab it doesn't works. Any idea? -- Pozdrawiam, e-Shrek hi e-shresk, I once created a matlab dll, and called it in c code. it worked. I guess you have to check whether you dll was built correctly or not. ps. why don't u call matlab function directly? Dnia Mon, 26 Oct 2009 07:19:04 +0000 (UTC), Jun napisa�(a): > hi e-shresk, > > I once created a matlab dll, ...

Using a MATLAB Created DLL in MATLAB
We are building an application entirely in MATLAB. Because certain parts of this application are proprietary, their source code cannot be available to all developers, but their functionality must be available to all. To get around this problem, I thought of compiling the proprietary source functions into a C DLL using the "mcc" command in the MATLAB compiler and then reading the DLL back into MATLAB using the "loadlibrary" command. To test this, I created an m-file called Arithmatic.m with the following body: function out = AddVars(numOne, numTwo) out = numOne + numTwo; ...

shutdown matlab.exe when matlab is not in use
Hi, I've noticed everytime I start my computer, matlab.exe starts automatically and consumes a considerable amount of memory space which slows down my computer. Is there an option to prevent this process from starting automatically each time my computer starts. I have Windows XP operating system. I have matlab 6.5. Thanks. Fenisol3 puffy_blake wrote: > Hi, > I've noticed everytime I start my computer, matlab.exe starts automatically > and consumes a considerable amount of memory space which slows down my > computer. Is there an option to prevent this process from starti...

using images in matlab
I am making a project in the field of face recognition. I will be using neural networks to analyse the images. I just wanted to know how would i will be using the nntool in matlab with images. i cant find it anywhere. Is there any place to search because I cant find help anywhere. Please help "omar " <ouzizo@gmail.com> wrote in message <grsh89$cba$1@fred.mathworks.com>... > I am making a project in the field of face recognition. I will be using neural networks to analyse the images. I just wanted to know how would i will be using the nntool in matlab with images. i c...

using other images in matlab
sir, how can i use images other than which is available in the tool box for processing..? please do reply very urgent. thanks in advance. deepthi. deepthi: <SNIP wants to process his/her photo album... > how can i use images other than which is available in the tool box for processing... WHAT?! you simply use another image file, which is in a format that <imread> can handle help imread; help fileformats; eg, download the famous <lena>, for instance from here <http://www.cs.cmu.edu/~chuck/lennapg/len_std.jpg> into a file <len_std.jpg> then ...

Convert 2D image to 3D image using Matlab... Help
Hello everyone, I'm working on a project and I want the algorithm that uses to convert 2D image to 3D image using Matlab, such as Google Map Image, Buildings, people on the street, and so on. I appreciate your help if you know. Thanks Ans "Ans Elmeshri" <ans.elmishri@gmail.com> wrote in message news:59e3cee0-6f93-4e24-9fbc-d97295f4a0c9@googlegroups.com... > Hello everyone, > > I'm working on a project and I want the algorithm that uses to convert 2D > image to 3D image using Matlab, such as Google Map Image, Buildings, > people on...

Cantera using Matlab R2010b: matlab crashes
Hi, I'm trying to use Cantera on windows 7 Professional 64bit using Matlab R2010b. Matlab crashes as soon as function: advance(reactor, t) is getting executed. I have installed Cantera 1.88 and Python 2.6 (both for 64 bit windows). The same code works perfectly fine on a 32bit machine where i have Cantera 1.7 and Python 2.5. I'm using the correct executable(ctmethods.mexw64) file for 64bit machine. Any help will be appreciated. Regards Prakhar (grad student, Caltech) ...

how could i use the matlab help without running matlab?
sometimes i just want to see some content of the help files and not intend to use matlab itself but as we know i must start matlab software first, then open the help product can i simply open the help document without running matlab? thanks! "fangfines " <fangfines@qq.com> wrote in message <i67kgh$qcr$1@fred.mathworks.com>... > sometimes i just want to see some content of the help files and not intend to use matlab itself > > but as we know i must start matlab software first, then open the help product > > can i simply open the help document wi...

using MODIS images to map ocean color using m_map in Matlab
I am trying to use image codes from http://oceandata.sci.gsfc.nasa.gov/MODISA/Mapped/Monthly/4km/chlor/ in ordor to create a figure of the DE, NJ, MA, and MA coastlines. I need to plot this data into a matlab image that had the high resolution data from m_map. Can anyone help me with the code? ...

EngSim: All Matlab features and functions. 2 to 20 Times Faster than MATLAB. Use the same programming syntax as MATLAB, ANSI C/C++, /C++. Good Graphics.
ENGSIM is an Engineering Simulation & Graphics Library for Microsoft Visual C++. It has all Matlab features and functions. 2 to 20 Times Faster than MATLAB. Very Easy to program. Use the same programming syntax as MATLAB, ANSI C/C++. Graphics Support is Very Good. Support Negative Indexing for Array/Matrix, Complex Array and Complex Matrix. Support Fix-point/Floating-point Communications Engineering and Signal Processing Simulation. Support Statistical Analysis. Support User- Defined Classes. Support User-Graphics Development ...

Web resources about - Inserting Image in MySQL Using MATLAB - comp.soft-sys.matlab

Inserting Kate
jurvetson posted a photo: the speaking GPS avatar that we came to love.. more prep photos below... You can hear her voice in the video compilation ...

Inserting the Galaxy Note 5’s S Pen backwards can permanently damage the device
One of the features Samsung highlighted when it unveiled the Galaxy Note 5 was the device's new S Pen slot design. The Note 5 features a spring-loaded ...


Inserting Slavery Into The Climate Debate
Chris Hayes compares the fight against fossil fuels to the abolitionist movement. He states plainly that “there is absolutely no conceivable ...

Samsung smart TVs inserting ads into third-party apps
... playback have pissed off a number of consumers. People with smart TVs from Samsung have been complaining that the electronics maker is inserting ...

Inserting images into Gmail could be so much better
When Google first launched the new compact compose window in Gmail, many of you might have noticed something annoying about inserting images. ...

Gawker tells Steven Crowder to "stop whining, take your licks, and accept that getting hit in the face ...
"... in the middle of an argument between billionaire-funded know-nothing ideologues and people whose livelihoods and stability are being threatened ...

Gmail's New Interface for Inserting Photos
Gmail has a new interface for adding images to a message. When you click the "insert images" icon, Gmail now shows all the photos highlighted ...

Why Hollywood Is Inserting These Two Huge Chinese Actresses Into Its Summer Blockbusters
... It shows the enormous potential in China for distributors. We've previously discussed how Hollywood is starting to cater to China by inserting ...

Samsung SmartTVs are inserting ads into movies - Business Insider
Random Pepsi pop-up ads have been appearing when SmartTV users watch content through the device's third-party apps.

Resources last updated: 2/9/2016 5:56:50 AM