wico77
V2EX  ›  问与答

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

  •  
  •   wico77 · Jun 10, 2016 · 4757 views
    This topic created in 3658 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   ·   5176 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:12 · PVG 09:12 · LAX 18:12 · JFK 21:12
    ♥ Do have faith in what you're doing.