How do I read local files?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

How do I read local files?

Postby fanrongqi » Sun Dec 03, 2023 8:22 am

I started building from the cefsimple project, and set the URL to a local HTML file. This HTML creates a quill editor, and I want to read a local file and pass the file content to the quill editor. After editing, the content in the editor can be saved locally. What plan should I use? I am a beginner, please help me provide methods.
fanrongqi
Newbie
 
Posts: 7
Joined: Tue Nov 21, 2023 8:31 am

Re: How do I read local files?

Postby KatrinaS » Sun Dec 03, 2023 11:26 am

Well passing the File contents is easy, you can pass it using JavaScript, but getting it back,, it's a partial JavaScript / CefMessageRouterHandler or CefScheme solution (amongst others), the same with opening File Dialogs :)

See : https://bitbucket.org/chromiumembedded/ ... gration.md

It's quite straightforward really :)
KatrinaS
Mentor
 
Posts: 83
Joined: Tue Jul 04, 2023 6:30 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 192 guests