How to run C++ program/the executable file of the program from Node.js once it is hosted on Heroku?

Stack Overflow Asked by prakash kumar on August 28, 2020

I have a C++ program that takes a bmp image as input, does color quantization and produces another bmp image as output. I wanted to make this a web application. I’m using React.js and Node.js for it.

I’ll get the image from the user and store it locally in the server using multer, then I’ll execute the exe of the C++ program and get the output image. Once the output image is generated, I’ll pass that to React.

Everything works fine locally, but when hosted on heroku, it’s not working.

There’s a problem with executing the exe file of the program as far as I can tell.

Add your own answers!

Related Questions

how to count number of file with a matching pattern using python

2  Asked on February 16, 2021 by suryansh-mathur


R First Row By Group When Condition Is Met

4  Asked on February 16, 2021 by bvowe


C++ program won’t print anything with vectors?

2  Asked on February 16, 2021 by luckylone-official


What is damping for?

3  Asked on February 16, 2021 by lix


Spring 5 MVC not finding mapping to controller returning JSON

2  Asked on February 16, 2021 by gary-kephart


Pointer value in c

3  Asked on February 15, 2021 by gsoap


Memory allocation of map[int]interface{} vs map[int]struct{}

2  Asked on February 15, 2021 by gabriel-gonzalez


Does the “leftmost prefix rule” of Index applies to SQL Server?

2  Asked on February 15, 2021 by drillfreak100


How to add ArrayList to JsonObject in Kotlin

2  Asked on February 15, 2021 by rajitha-perera


How to get data from axios request?

1  Asked on February 15, 2021 by theyaxxe


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP