Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api request 控制responseType = 'blob' 回傳不是 blob #69

Open
waittinghsu opened this issue May 20, 2021 · 0 comments
Open

api request 控制responseType = 'blob' 回傳不是 blob #69

waittinghsu opened this issue May 20, 2021 · 0 comments

Comments

@waittinghsu
Copy link

什么问题

我的api 回傳的blob 資料想要處理成 excel

目前在請求配置
Pre-request Script 幫 context 加入 responseType = 'blob'

然後再
Pre-reponse Script 去接 context.resoinseData
發現用 Object.prototype.toString.call() 回傳值是 [object String] 而不是 [object Blob]

請問這有解嗎?? 發送請求不是用axios??

預期

~ resoinseData 為 BLOB型態

實際

~ resoinseData 為 字串

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant