Coder Social home page Coder Social logo

Comments (9)

lishid avatar lishid commented on September 23, 2024

I will look into this a bit later, as it'll involve bridging native data for each platform we currently support.

from obsidian-api.

fyears avatar fyears commented on September 23, 2024

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.

fyears avatar fyears commented on September 23, 2024

Hi, happy new year!

May I ask is there any new solutions regarding this issue?

Thank you so much!

from obsidian-api.

lishid avatar lishid commented on September 23, 2024

Happy new year! Apologies I have not been able to add this functionality yet.

from obsidian-api.

fyears avatar fyears commented on September 23, 2024

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.

lishid avatar lishid commented on September 23, 2024

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.

fyears avatar fyears commented on September 23, 2024

Cool! Thank you!

from obsidian-api.

fyears avatar fyears commented on September 23, 2024

And, does it allow uploading binary data (ArrayBuffer)?

from obsidian-api.

lishid avatar lishid commented on September 23, 2024

Yeah I will add that as well.

from obsidian-api.

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.