Code Monkey home page Code Monkey logo

diplomamanangement's Introduction

npm install

在 fabric-samples/fabcar/Fabconn.js 中加入

/**
 * API
 * 将从客户端接受的文件的base64编码作为一个交易加入区块链
 * 避免在服务器端产生缓存
 * @param {*} key 键值key
 * @param {*} bdata 图片的base64编码
 * @param {*} desc 一个json对象{},包含一组描述属性,如文件类别,创建修改时间等,这些属性用于多条件检索
 */
putBase64(key, bdata, desc = '{}') {
    try {
        desc = JSON.parse(desc);
        desc.base64 = bdata;
        let jstr = JSON.stringify(desc);
        this.invoke('put', key, jstr);
    } catch (err) {
        console.log("图片加入失败", err);
    }

}

diplomamanangement's People

Contributors

jbdsfks avatar ww1820 avatar banqingbuhuang avatar 916106840510 avatar gauplus avatar mana0306 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.