wico77
V2EX  ›  问与答

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

  •  
  •   wico77 · Jun 10, 2016 · 4824 views
    This topic created in 3723 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   ·   940 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 17ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
    ♥ Do have faith in what you're doing.