|
|
database toolbox SQL Query on datatype "image" |
|
hippwa |

Forum-Newbie
|
 |
Beiträge: 1
|
 |
|
 |
Anmeldedatum: 21.03.17
|
 |
|
 |
Wohnort: ---
|
 |
|
 |
Version: ---
|
 |
|
|
 |
|
Verfasst am: 21.03.2017, 12:08
Titel: database toolbox SQL Query on datatype "image"
|
 |
|
 |
|
In Matlab Version 7.0 (2016b) war es möglich bei einer Abfrage eines "Image" Datentyps einer SQL-Datenbank mehr als 8000 1Byte-Werte zu bekommen. Nun in Version 7.1(2017a) ist das Ergebnis der Abfrage auf die ersten 800 1Byte-Werte beschränkt.
In Version 7.0 war das Ergebnis in int8 und nun in Version 7.1 ist dies in uint8.
unten kommt ein Beispielcode
now the same in english
In matlab Version 7.0 (2016b) it was possible to make a query on Image datatype in SQL for more then 8000 1Byte values. Now in matlab Version 7.1 (2017a) the queryresult is limited to the first 8000 values.
In ver7.0 the result was int8 in ver7.1 the result is uint8
For example there is a database called LocalDB with a table called Test and a field called imagedatafield with datatype Image and one column with 11000 Byte values
code with matlab ver 7.0
setdbprefs('DataReturnFormat', 'structure');
conn = database('LocalDB','','');
SqlStr = ['SELECT imagedatafield FROM dbo.Test];
result = fetch(conn,SqlStr)
result.imagedatafield
ans =
java.lang.Object[][]:
[11000×1 int8]
code with matlab ver 7.1 (the same code on the same database as with ver 7.0)
setdbprefs('DataReturnFormat', 'structure');
conn = database('LocalDB','','');
SqlStr = ['SELECT imagedatafield FROM dbo.Test];
result = fetch(conn,SqlStr)
result.imagedatafield
ans =
cell
[8000×1 uint8]
Gibt es eine Möglichkeit in Version 7.1 wieder alle Daten zu bekommen??
Is there a way to get all data of a datatype "Image" and not just the first 8000 ??
|
|
|
|
|
Harald |

Forum-Meister
|
 |
Beiträge: 24.495
|
 |
|
 |
Anmeldedatum: 26.03.09
|
 |
|
 |
Wohnort: Nähe München
|
 |
|
 |
Version: ab 2017b
|
 |
|
|
 |
|
Verfasst am: 21.03.2017, 13:30
Titel:
|
 |
Hallo,
sollten hier keine Antworten kommen, mal den Technischen Support kontaktieren.
Grüße,
Harald
|
|
|
|
|
Einstellungen und Berechtigungen
|
|
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
|
|
Impressum
| Nutzungsbedingungen
| Datenschutz
| FAQ
| RSS
Hosted by:
Copyright © 2007 - 2025
goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.
|
|