We plan to use the MVS Toolkit for data entry form on a phone app. How would you go about uploading a photo from your mobile app to a server?
The picture should be stored on a server as JPG file. The path or URL for the picture should be stored on D3.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
We plan to use the MVS Toolkit for data entry form on a phone app. How would you go about uploading a photo from your mobile app to a server?
The picture should be stored on a server as JPG file. The path or URL for the picture should be stored on D3.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
------------------------------
Alberto Leal
System Analyst
Millano Distribuidora de Auto Pecas Ltda
Varzea Grande MT BR
------------------------------
We plan to use the MVS Toolkit for data entry form on a phone app. How would you go about uploading a photo from your mobile app to a server?
The picture should be stored on a server as JPG file. The path or URL for the picture should be stored on D3.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
HTML code:
<canvas id="canvasContent"></canvas>
JavaScript Code:
const canvas = document.getElementById("canvasContent");
const dataUrl = canvas.toDataURL("image/jpeg", 0.5);
// Write dataUrl to the database
------------------------------
Doug Averch
Owner
U2 Logic
www.u2logic.com/tools.html
------------------------------
HTML code:
<canvas id="canvasContent"></canvas>
JavaScript Code:
const canvas = document.getElementById("canvasContent");
const dataUrl = canvas.toDataURL("image/jpeg", 0.5);
// Write dataUrl to the database
------------------------------
Doug Averch
Owner
U2 Logic
www.u2logic.com/tools.html
------------------------------
My understanding is that MVS Toolkit, even though it is a web server, cannot serve images stored in some Windows folder (and neither can save images to a folder).
We have an IIS server but I don't know how to use it for that purpose (security/upload service of some kind etc.). I did look into Google Storage as I had it working on a different project but it is giving me grief right now. :)
Any suggestions how to do it easily would be appreciated.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
My understanding is that MVS Toolkit, even though it is a web server, cannot serve images stored in some Windows folder (and neither can save images to a folder).
We have an IIS server but I don't know how to use it for that purpose (security/upload service of some kind etc.). I did look into Google Storage as I had it working on a different project but it is giving me grief right now. :)
Any suggestions how to do it easily would be appreciated.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
Hy Crhis...
yes with MSV you can do that your web application when upload the image... you convert to base64 before send to MVS rest point
then will be saved in d3, when the file is retrived from d3 will return the base64 string
and in your web page you do something like this:
<!DOCTYPE html>
<html>
<head>
<title>Display Image</title>
</head>
<body>
<img style='display:block; width:100px;height:100px;' id='base64image'
src='data:image/jpeg;base64, LzlqLzRBQ... <!-- Base64 data -->' />
</body>
</html>------------------------------
Alberto Leal
System Analyst
Millano Distribuidora de Auto Pecas Ltda
Varzea Grande MT BR
------------------------------
Hy Crhis...
yes with MSV you can do that your web application when upload the image... you convert to base64 before send to MVS rest point
then will be saved in d3, when the file is retrived from d3 will return the base64 string
and in your web page you do something like this:
<!DOCTYPE html>
<html>
<head>
<title>Display Image</title>
</head>
<body>
<img style='display:block; width:100px;height:100px;' id='base64image'
src='data:image/jpeg;base64, LzlqLzRBQ... <!-- Base64 data -->' />
</body>
</html>------------------------------
Alberto Leal
System Analyst
Millano Distribuidora de Auto Pecas Ltda
Varzea Grande MT BR
------------------------------
Thank you for your answers. This is a great idea. I guess, I would need a javaScript to get the data for the img tag.
I am wondering how well D3/MVS is going to handle strings that are few million characters long.
The other concern is that the image will be a part of daily D3 save. Clients may not like bigger saves that take longer to finish.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
Thank you for your answers. This is a great idea. I guess, I would need a javaScript to get the data for the img tag.
I am wondering how well D3/MVS is going to handle strings that are few million characters long.
The other concern is that the image will be a part of daily D3 save. Clients may not like bigger saves that take longer to finish.
Thanks,
Chris
------------------------------
Chris Wolcz
Senior Software Developer
Execontrol Global Solutions
Clifton Park NY US
------------------------------
the base64 has some "compression" in the string.. so the string will not be the same size as the original file
about MSV handle a big string i have no ideia
backups are always big hahha... my gerenates 62 Files
------------------------------
Alberto Leal
System Analyst
Millano Distribuidora de Auto Pecas Ltda
Varzea Grande MT BR
------------------------------
the base64 has some "compression" in the string.. so the string will not be the same size as the original file
about MSV handle a big string i have no ideia
backups are always big hahha... my gerenates 62 Files
------------------------------
Alberto Leal
System Analyst
Millano Distribuidora de Auto Pecas Ltda
Varzea Grande MT BR
------------------------------
------------------------------
Doug Averch
Owner
U2 Logic
www.u2logic.com/tools.html
------------------------------
------------------------------
Doug Averch
Owner
U2 Logic
www.u2logic.com/tools.html
------------------------------
The photo of the skier rocks. Is that you?
--Bill
------------------------------
Bill Brutzman
IT Manager
Hk Metalcraft Manufacturing Corporation
Lodi NJ US
------------------------------
The photo of the skier rocks. Is that you?
--Bill
------------------------------
Bill Brutzman
IT Manager
Hk Metalcraft Manufacturing Corporation
Lodi NJ US
------------------------------
------------------------------
Doug Averch
Owner
U2 Logic
www.u2logic.com/tools.html
------------------------------
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.