Error occurred when delete image

The place to discuss development topics.
Discussions on the RICOH THETA API and SDK, image processing of spherical images, other hardware related topics, introduction of useful libraries, etc.

Error occurred when delete image

Postby ChuanFang » 19 Jul 2019, 05:32

Hi, I have a RICHO Theta-V camera, which has v2.50.1 firmware. When i use the demo code given in the RICOH_THETA_v2_1_SDK_for_Android.0.1.0.zip, I met an error when i tried to delete the image from the Image ListView, and the error was depicted as following:
Code: Select all
2019-07-19 13:14:08.248 6283-6310/com.vlab.androidapp W/System.err: java.io.FileNotFoundException: http://192.168.1.1/osc/commands/execute
2019-07-19 13:14:08.250 6283-6310/com.vlab.androidapp W/System.err:     at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:251)
2019-07-19 13:14:08.251 6283-6310/com.vlab.androidapp W/System.err:     at com.vlab.androidapp.network.HttpConnector.deleteFile(HttpConnector.java:601)
2019-07-19 13:14:08.251 6283-6310/com.vlab.androidapp W/System.err:     at com.vlab.androidapp.MainActivity$DeleteObjectTask.doInBackground(MainActivity.java:567)
2019-07-19 13:14:08.251 6283-6310/com.vlab.androidapp W/System.err:     at com.vlab.androidapp.MainActivity$DeleteObjectTask.doInBackground(MainActivity.java:560)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:333)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
2019-07-19 13:14:08.252 6283-6310/com.vlab.androidapp W/System.err:     at java.lang.Thread.run(Thread.java:764)

Is there anyone who can help me to fix this problem? Thanks in advance
ChuanFang
 
Posts: 1
Joined: 12 Jul 2019, 08:51

Re: Error occurred when delete image

Postby YuliiaHutsenko » 19 Jul 2019, 07:27

I also have the same problems. I do not know how to fix it.
YuliiaHutsenko
 
Posts: 2
Joined: 19 Jul 2019, 07:23

Re: Error occurred when delete image

Postby sbehnken » 14 Aug 2019, 19:04

Here is my POST request to delete:
{ "name": "camera.delete",
"parameters":{
"fileUrls": [image]
}
}

And here is the code:
try {
// send HTTP POST
input.put("name", "camera.delete");
JSONObject parameters = new JSONObject();
JSONArray jsonArray = new JSONArray();
jsonArray.put(deletedFileId);
parameters.put("fileUri", deletedFileId);
parameters.put("fileUrls", jsonArray);
input.put("parameters", parameters);
sbehnken
 
Posts: 1
Joined: 01 Aug 2019, 20:20



Return to Development



All times are UTC