Read in file that has raw binary image data and an XML footer
3 ビュー (過去 30 日間)
古いコメントを表示
Hello, I need to read in data from a file that contains a large amount of raw binary image data (singles) followed by an XML footer. I can easily read in the image data (if I know the size of the array), but I'm not sure how to then proceed and read in the rest of the file in XML format. The xmlread() function needs a standalone XML file. My thought was to copy (bit by bit) the footer of the file into a temp file that would then be read by xmlread(). But I'm not quite sure how to do that copy just a part of a file into a new file. Any help would be much appreciated.
Justin
0 件のコメント
採用された回答
Ken Atwell
2015 年 6 月 14 日
2 件のコメント
Ken Atwell
2015 年 6 月 14 日
I'm not aware of any way to create a "file" that is a subset of another without actually copying the bits. xlmread takes a filename only and not a string or file handle and alternative sources of data, which would also eliminate the need for a temporary file.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!