I have created an asmx web service to accept images via NetworkRequest which works fine in development. I'm sending the image using the following code snippet:
var body = {
"f": "json"
,"tags": fname
,"file": "@+fname
};
send( body )
For development, the fname = "C:/Users/<username>/Pictures/IMG_1668636844943.jpg" ("file:///" was removed to avoid the "Type error") works fine.
When I use my Pixel 7 to upload the image using the same code, it fails to call the web service at all. However, when I comment out the "file" line in the body it calls the service and returns an error.
The image name from the Pixel 7 is "storage/emulated/0/Android/data/com.appstudio.player/files/Pictures/IMG_20221116_nnnnnnnnnnnnnnnnnnn.jpg"
When trying to load this image from the device, the web service is never even called. Is there a way to trap the error within NetworkRequest as to why this fails?