Code Monkey home page Code Monkey logo

Comments (6)

ganxun1 avatar ganxun1 commented on July 17, 2024

目前在Clouda中没有封装处理图片保存到mongod的API,但是你可以在Controller中使用js算法来处理图片或者直接使用处理图片的JS SDK(例如百度BAE上的图片处理服务),然后将处理后的图片存入mongodb中

from cloudajs.

Jaware avatar Jaware commented on July 17, 2024

俺是新手不大懂,还是没搞明白怎么在Controller里面使用node的api。百度图片服务貌似也是node的,带有require语句什么的,如何在Controller里面使用呢?给个范例呗O(∩_∩)O

from cloudajs.

chenjx1005 avatar chenjx1005 commented on July 17, 2024

请问post方式请求第三方数据可以自定义请求header里面的内容吗

在 2013年9月10日上午10:02,zjwphoenix [email protected]写道:

俺是新手不大懂,还是没搞明白怎么在Controller里面使用node的api。百度图片服务貌似也是node的,带有require语句什么的,如何在Controller里面使用呢?给个范例呗O(∩_∩)O


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-24128930
.

from cloudajs.

huang-xin avatar huang-xin commented on July 17, 2024

post方式请求第三方数据支持自定义header, 在externalConfig对应的接口中自定义声明即可:

var options = {
    host : 'some.host.com',
    path : '/' + type,
        headers: {
          //在此自定义header内容
          'Content-Type': ...
    }
}

另外,clouda默认的 'Content-Type': 'application/x-www-form-urlencoded'。

from cloudajs.

chenjx1005 avatar chenjx1005 commented on July 17, 2024

谢谢~请问可以设置cookie吗?

2013/9/10 einsteinhx [email protected]

post方式请求第三方数据支持自定义header, 在externalConfig对应的接口中自定义声明即可:

var options = {
host : 'some.host.com',
path : '/' + type,
headers: {
//在此自定义header内容
'Content-Type': ...
}}

另外,clouda默认的 'Content-Type': 'application/x-www-form-urlencoded'。


Reply to this email directly or view it on GitHubhttps://github.com//issues/43#issuecomment-24130759
.

from cloudajs.

huang-xin avatar huang-xin commented on July 17, 2024

可以

from cloudajs.

Related Issues (20)

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.