cancel
Showing results for 
Search instead for 
Did you mean: 

Can I upload image through url

alfresco_shaikh
Champ in-the-making
Champ in-the-making
Hi

I have one question. Can I store file/image using image live url  in alfresco repository using cmis api or any other api?
For example I have one url like "http://epaperbeta.....com/..../...../..../...../16/Article/test.jpg"
I want to upload that image file directly to alfresco repository without storing to my hard drive..When i click on my submit button.How is it possible in alfresco??
Any help may appreciated


Thanks
1 REPLY 1

nazakatalfresco
Champ in-the-making
Champ in-the-making
Yes. You can directly upload the images into repository without saving it into your hard drive.
You have to create file object with your image url like

File file = new File("your image url");

from file object you get get InputStream and save this stream into repository through Alfresco content services.


Thanks,
Nazakat