wico77
V2EX  ›  问与答

mongodb 里的 bindata 类型数据怎么转换成 string

  •  
  •   wico77 · Jun 10, 2016 · 4795 views
    This topic created in 3691 days ago, the information mentioned may be changed or developed.

    shell 查询数据 db.bts.findOne()['info']['name'] BinData(0,"W0hvcnJpYmxlU3Vic10gU2Nod2FyemVzbWFya2VuIC0gMDQgWzEwODBwXS5ta3Y=") 数据是通过 nodejs 存入 mongodb 的。怎么把这些数据转换成 string 形式呢。 elasticsearch 里也是这种数据。比较讨厌

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
    ♥ Do have faith in what you're doing.