cancel
Showing results for 
Search instead for 
Did you mean: 

Accesing uploaded pdf file

neerajvij
Champ in-the-making
Champ in-the-making
hi,

I have uploaded data.pdf using the web client under my home-> data folder.


Now I need to create a web service client which will pass the name of the uploaded file(data.pdf) and I need return back a boolean file if it exists.


All uploaded files will be unique file name.

please inform, how can I get the file without having the path.


warm regards
Neeraj.
8 REPLIES 8

robertoroberto
Champ in-the-making
Champ in-the-making
Hi. I think, You can use repository web service to do a Lucene query.

neerajvij
Champ in-the-making
Champ in-the-making
Hi,

please inform some examples or links where I can find out.


warm regards,
Neeraj.

neerajvij
Champ in-the-making
Champ in-the-making
Hi,

I want to search some images.

Thanks,
Neeraj.

robertoroberto
Champ in-the-making
Champ in-the-making

neerajvij
Champ in-the-making
Champ in-the-making
Hi,

the code given in query1.java seacrhes for some text in folders in files.

I need to search for some images . 

please inform how can I do it.


Thanks,
Neeraj.

zaizi
Champ in-the-making
Champ in-the-making
The same as the example code above, but replace "TEXT:'alfresco development team'" with "QNAME:*.png" to list all PNG image files. Depending on your specific use case you could filter by spaces as well.

See http://wiki.alfresco.com/wiki/Search_Documentation for examples of query strings.

You can try out the query strings in the search field at the top of the node browser in the web client.

Ainga

neerajvij
Champ in-the-making
Champ in-the-making
hi

I tried  by replacing the text with *.jpeg for my images. But it is throwing exception.

I printed the query on console,
query ->    +PARENT:"workspace://SpacesStore/c2726740-aef5-11dc-8878-a100f519324a" +QNAME:"*.jpeg"

exception thrown was

org.alfresco.repo.search.SearcherException: Failed to parse query: +PARENT:"workspace://SpacesStore/c2726740-aef5-11dc-8878-a100f519324a" +QNAME:"*.jpeg"


Please help.

Regards,
Neeraj.

neerajvij
Champ in-the-making
Champ in-the-making
Hi,

I am still unable to resolve the proble.I am not sure what I am missing.

please help

warm regards
neeraj