please help me. how to retrieve image from database?

2 views (last 30 days)
I use the source code on this link http://www.mathworks.com/matlabcentral/answers/97768-how-do-i-insert-an-image-or-figure-into-a-database-using-the-database-toolbox-in-matlab to save the image, and now I am confused with sorce code to retrieving image data binary types from database. I have tried the source code at this link http://www.mathworks.com/help/database/ug/retrieving-binary-or-other-sun-java-sql-data-types.html. but I get an error like this
>>saveimg
ans =
[2] [255x1 int8]
[3] [255x1 int8]
??? Error using ==> imread at 342 Unable to determine the file format.
Error in ==> parsebinary at 74 [x,map] = imread(['testfile.' lower(f)]);
Error in ==> saveimg at 13 parsebinary(gbr, 'bmp');
Can help me to fix this source code? thanks

Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!