Home  >  Q&A  >  body text

java - mysql blob type reading problem!

The type saved in the database is a blob type, written in c. I don’t know if it is any different from Java storage; now the problem is that it has a structure when it is saved:
The structure is:
First two integers, representing 101 and the number of variables respectively, and then an integer and a string, for example: 101 100 145 "Weather" 168 "Beautiful", something like this is very painful. . . I don’t know how to get it. I tried it with the stream and it was all garbled. I asked the server and they said they have to intercept the bytes according to the structure. I don’t know where to start. Can anyone give me some advice?

淡淡烟草味淡淡烟草味2645 days ago1025

reply all(1)I'll reply

  • 阿神

    阿神2017-06-24 09:43:30

    C++ and Java need to use the same serialization protocol, otherwise they cannot be deserialized. It's not a structure or anything.

    reply
    0
  • Cancelreply