Unable to fetch image data using URL

Hi,

I am trying to fetch signature image (binary) data contained in the form
submission. I am using Tomcat and MySQL for ODK aggregate. I referred to
the
https://groups.google.com/forum/?fromgroups=#!searchin/opendatakit-developers/binary$20url/opendatakit-developers/sijorgwMtGA/pq8d6OFJJn4J URL
and created a URL as follows :

http://localhost:8080/ODKAggregate/view/binaryData?blobKey=avddvr_19[@version=null
and
@uiVersion=null]/bmnote[@key=uuid:0fba2b67-923c-414d-96d5-a0dbef5b291]/Review_BM:BM_Sign_BM

I also set the "Allow anonymous retrieval of images, audio and video data
(needed for GoogleEarth balloon displays)" permissions. Now when I browse
to the above URL, I get "Unable to retrieve attachment" and also in tomcat
console I get following :

Caused by:
org.opendatakit.common.persistence.exception.ODKEntityNotFoundExcepti
on: Unable to retrieve odk_prod.AVDDVR_19_CORE key:
uuid:0fba2b67-923c-414d-96d5
-a0dbef5b291

What may be the problem?

Please let me know.

Regards,
Mangesh Gokhale

Hi,

Do I need to URLEncode? Just a guess.

Regards,
Mangesh

··· On Thursday, August 6, 2015 at 6:18:58 PM UTC+5:30, Mangesh Gokhale wrote:

Hi,

I am trying to fetch signature image (binary) data contained in the form
submission. I am using Tomcat and MySQL for ODK aggregate. I referred to
the
https://groups.google.com/forum/?fromgroups=#!searchin/opendatakit-developers/binary$20url/opendatakit-developers/sijorgwMtGA/pq8d6OFJJn4J URL
and created a URL as follows :

http://localhost:8080/ODKAggregate/view/binaryData?blobKey=avddvr_19[@version=null
and
@uiVersion=null]/bmnote[@key=uuid:0fba2b67-923c-414d-96d5-a0dbef5b291]/Review_BM:BM_Sign_BM

I also set the "Allow anonymous retrieval of images, audio and video data
(needed for GoogleEarth balloon displays)" permissions. Now when I browse
to the above URL, I get "Unable to retrieve attachment" and also in tomcat
console I get following :

Caused by:
org.opendatakit.common.persistence.exception.ODKEntityNotFoundExcepti
on: Unable to retrieve odk_prod.AVDDVR_19_CORE key:
uuid:0fba2b67-923c-414d-96d5
-a0dbef5b291

What may be the problem?

Please let me know.

Regards,
Mangesh Gokhale

THe easiest way to debug this is to go to the submissions page and
right-click on one of these signature images, and compare the URL you are
constructing with the URL you can copy with the right-click.

··· On Thu, Aug 6, 2015 at 5:53 AM, Mangesh Gokhale < mangeshgokhale2000@gmail.com> wrote:

Hi,

Do I need to URLEncode? Just a guess.

Regards,
Mangesh

On Thursday, August 6, 2015 at 6:18:58 PM UTC+5:30, Mangesh Gokhale wrote:

Hi,

I am trying to fetch signature image (binary) data contained in the form
submission. I am using Tomcat and MySQL for ODK aggregate. I referred to
the
https://groups.google.com/forum/?fromgroups=#!searchin/opendatakit-developers/binary$20url/opendatakit-developers/sijorgwMtGA/pq8d6OFJJn4J URL
and created a URL as follows :

http://localhost:8080/ODKAggregate/view/binaryData?blobKey=avddvr_19[@version=null
and
@uiVersion=null]/bmnote[@key=uuid:0fba2b67-923c-414d-96d5-a0dbef5b291]/Review_BM:BM_Sign_BM

I also set the "Allow anonymous retrieval of images, audio and video
data (needed for GoogleEarth balloon displays)" permissions. Now when I
browse to the above URL, I get "Unable to retrieve attachment" and also in
tomcat console I get following :

Caused by:
org.opendatakit.common.persistence.exception.ODKEntityNotFoundExcepti
on: Unable to retrieve odk_prod.AVDDVR_19_CORE key:
uuid:0fba2b67-923c-414d-96d5
-a0dbef5b291

What may be the problem?

Please let me know.

Regards,
Mangesh Gokhale

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com