node-qiniu icon indicating copy to clipboard operation
node-qiniu copied to clipboard

是否可以支持Buffer直传?

Open kid-wumeng opened this issue 7 years ago • 4 comments

有时base64过来的文件没必要往本地存一下……

kid-wumeng avatar Mar 31 '17 12:03 kid-wumeng

这个可以考虑下,这个项目正在重写,最晚下周可以发布。 By Will Wen Gunn Senior Web Developer, Photographer 在2017年03月31日 20:30,KID 写道: 有时base64过来的文件没必要往本地存一下……

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/iwillwen/node-qiniu","title":"iwillwen/node-qiniu","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/iwillwen/node-qiniu"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"是否可以支持Buffer直传? (#31)"}],"action":{"name":"View Issue","url":"https://github.com/iwillwen/node-qiniu/issues/31"}}}

iwillwen avatar Mar 31 '17 13:03 iwillwen

api不会变吧 <( ̄3 ̄)> ?

kid-wumeng avatar Mar 31 '17 14:03 kid-wumeng

其实现在就已经支持了,用 createPutStream 创建一个上传流,将 base64 数据转为二进制然后写到流中。 By Will Wen Gunn Senior Web Developer, Photographer 在2017年03月31日 22:31,KID 写道: api不会变吧 <( ̄3 ̄)> ?

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/iwillwen/node-qiniu","title":"iwillwen/node-qiniu","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/iwillwen/node-qiniu"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kid-wumeng in #31: api不会变吧 \u003c( ̄3 ̄)\u003e ?"}],"action":{"name":"View Issue","url":"https://github.com/iwillwen/node-qiniu/issues/31#issuecomment-290728282"}}}

iwillwen avatar Apr 01 '17 00:04 iwillwen

谢谢,我试一试~

kid-wumeng avatar Apr 01 '17 13:04 kid-wumeng