[feat] Way to get "raw" data from a sidecar #4673
Labels
priority: 2 medium
scope: core
Core packages of Tauri
status: backlog
Issue is ready and we can work on it
type: feature request
Describe the problem
Hi guys,
When using
Sidecar
to bundle and execute an external program that returns non UFT-8 characters it's impossible to get the "raw" data. For example:Let's say I want to bundle
FFmpeg
into my Tauri app. I guess the only way for me to execute it is using Sidecar. The code is looking something like this:The
FFmpeg
command should return some information through thestderr
and it should return the "raw data"/pixels of the image through thestdout
The problem is that Tauri tries to transform all the output and sometimes we just need the raw data. Here is where it happens:
tauri/core/tauri/src/api/process/command.rs
Line 395 in 597c982
I had this working with my own code
std::process::Command
before usingSidecar
.Describe the solution you'd like
Maybe we can have a function where we don't transform the data. Or a way to call
std::process::Command
with the relative path of the bundled executables.Alternatives considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: