Need help in insert a huge file as a blob into SQL Server DB

조회 수: 1 (최근 30일)
JFz
JFz 2015년 12월 22일
댓글: Rebecca Krosnick 2015년 12월 24일
Hi,
I have a huge file that is a matrix. The size of the matrix change daily, but always around 100MG.
I need to insert it into a Sql Server database as a blob. How to do that?
I read the data insert from this site but still need help here, since it is different from all other inserts.
Thanks a lot.
Jennifer
  댓글 수: 1
Rebecca Krosnick
Rebecca Krosnick 2015년 12월 24일
What commands are you currently trying to use? Do you experience any errors?
You should use the "fread" function to read the binary data from the MAT file. You can then insert the binary data as a BLOB object into the database using the an insert function.
Note that the Native ODBC interface does not support the BLOB datatype, but the JDBC driver does.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by