reading BLOB image from MySQL database

前端 未结 1 1151
礼貌的吻别
礼貌的吻别 2021-01-18 10:42

I\'m having some trouble reading a blob back from a MySQL database. I\'ve gotten it to successfully insert into the database, but can\'t seem to get it to read back. I know

相关标签:
1条回答
  • 2021-01-18 11:46

    Have you tried simplifying first? Instead of reading the BLOB 100 bytes at a time, try simplifying your code to just read all bytes to a file. This way you can easily rule out data layer issues.

    The following documentation also suggests you store your file size as another column: Handling BLOB Data With Connector/NET

    0 讨论(0)
提交回复
热议问题