wico77
V2EX  ›  问与答

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

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