Comments (9)
I will look into this a bit later, as it'll involve bridging native data for each platform we currently support.
from obsidian-api.
Thanks.
Maybe the best thing is that we have something like fetch or axios without cors limit, but I understand it might be too good to be true :-D .
Or, maybe itβs possible to provide mobile-only api firstly? In desktop we have other options like using nodejs or electron api. (It might introduce another issue that one plugin has to be built differently for desktop or mobile though)
from obsidian-api.
Hi, happy new year!
May I ask is there any new solutions regarding this issue?
Thank you so much!
from obsidian-api.
Happy new year! Apologies I have not been able to add this functionality yet.
from obsidian-api.
Hi, what will be returned in request()
string if the response data is actually a binary file? I understand that further api changes need some development and some time, but is it possible to directly turn the current string "back" into its "original ArrayBuffer
" if the data is binary? (Like, I could JSON.parse()
to "simulate" a json response) I tried new TextEncoder().encode(res)
but no luck. (This is mainly for "downloading binary files")
Similarly, is it possible to directly supply ArrayBuffer
into RequestParam#body
, though currently the api says its type being string? Or any workaround? (This is mainly for "uploading binary files")
Thank you so much!
from obsidian-api.
A new URL endpoint will be made available in an upcoming insider release called requestUrl which would return an object with status, headers and body as ArrayBuffer.
from obsidian-api.
Cool! Thank you!
from obsidian-api.
And, does it allow uploading binary data (ArrayBuffer)?
from obsidian-api.
Yeah I will add that as well.
from obsidian-api.
Related Issues (20)
- Bug: APIs such as readBinary and readLocalFile cannot read files larger than 150M on the mobile phone.
- Bug: `FileSystemAdapter.getFilePath` return type is incorrect HOT 4
- Bug: requestURL when body is arraybinary or formdata, I try to transform formdata to array put it in body of request, but failed. HOT 6
- Bug: Treating Longtime Users and Plugin Developers with Friendliness HOT 3
- Version 1.5.1 is not published on npmjs HOT 1
- Bug: `generateMarkdown`'s `alias` parameter has no effect for non-markdown files HOT 2
- Request: event for custom views to know if they are visible/hidden HOT 2
- Bug: MarkdownFileInfo.editor field access throws during initialization HOT 5
- Replace `any` with more specific types HOT 1
- Bug: type definition for ColorComponent is missing property with HtmlElement HOT 1
- Bug: Lack of upstream version of mermaid limits the diagram which can be used HOT 1
- Bug: `WorkspaceItem.getContainer()` always returns the root container HOT 4
- Request: built-in React components for modal settings HOT 1
- Bug: this.app.internalPlugins does not exist on type 'App' HOT 1
- Bug: processFrontMatter does not work if callback deletes all keys HOT 1
- Bug: `requestUrl()` and server-sent events HOT 4
- Bug: Link is duplicated in frontmatter cache when the link is in a footnote HOT 1
- `CHANGELOG.md` not updated for latest version
- Request: Add tags to GitHub repository matching NPM package HOT 1
- Version 1.5.11 changelog HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-api.