Import Image files with Metadata

  • Follow


Dear Experts 

I have a invoice scanning program which creates the image of the invoice and 
extract the data like suppliername , amounts etc which is kept in same folder 
in xml file 

we are creating invoice approval workflow for which we need the image and 
the metadata do you know any solution which would import image and xml as 
metadata

the filename are same  for every image ( there is abc.tif and abc.xml for 
the invoice abc )

please guide

best regards
Sharad
0
Reply Utf 5/27/2010 8:57:04 PM

Hi Sharad,

I wasn't sure if you were looking to write your own program or identify an 
out-of-the-box solution for importing images and metadata to SharePoint.

As a SharePoint user, I used to write sample snippet to upload and assign 
metadata to the documents in SharePoint using SharePoint object model. You 
can see if it is useful to create a simple program to upload documents and 
assign metadata.  

Here is sample code snippet:  
========================  
//Open the web 
SPWeb web = new SPSite("http://spsrv/sites").OpenWeb();

//Get the folder
SPFolder folder = web.Folders["Shared Documents"];

folder.Files.Add("shared documents/folder1/abc.jpg", new 
FileStream("c:\abc.jpg"));

//Get the file
SPFile file = folder.Files["abc.jpg"];

file.Title = "Invoice1"

file("InvoiceDate") = DateTime.Now

file.Update()
========================  

You may also take a look at a few products that I come across: 

http://sharepointsherpa.com/2008/04/02/sharepoint-2007-migrating-fileshare-files-into-document-libraries-using-migration-tool/ 
http://www.vyapin.com/products/sharepoint/moss-2007/dockit/sharepoint-2007-file-migration.htm 
http://blogs.msdn.com/b/jro/archive/2007/08/29/moss-2007-and-sps-2003-sps-2001-migration-tools-public-release.aspx 

Have a nice day!

// Ganesh //


"Sharad2005" wrote:

> Dear Experts 
> 
> I have a invoice scanning program which creates the image of the invoice and 
> extract the data like suppliername , amounts etc which is kept in same folder 
> in xml file 
> 
> we are creating invoice approval workflow for which we need the image and 
> the metadata do you know any solution which would import image and xml as 
> metadata
> 
> the filename are same  for every image ( there is abc.tif and abc.xml for 
> the invoice abc )
> 
> please guide
> 
> best regards
> Sharad
0
Reply Utf 5/27/2010 9:51:51 PM


This is interesting.

1.  Where/What is a good reference to read to learn how to do this sort 
of programming?  (I've been relying on Access to munge SP data but want 
to pursue this approach).

2.  Where does this program that you wrote get put to run? file on PC 
and run in command prompt?


--rms

www.rmschneider.com




On 27/05/10 22:51, Ganesh wrote:
> Hi Sharad,
>
> I wasn't sure if you were looking to write your own program or identify an
> out-of-the-box solution for importing images and metadata to SharePoint.
>
> As a SharePoint user, I used to write sample snippet to upload and assign
> metadata to the documents in SharePoint using SharePoint object model. You
> can see if it is useful to create a simple program to upload documents and
> assign metadata.
>
> Here is sample code snippet:
> ========================
> //Open the web
> SPWeb web = new SPSite("http://spsrv/sites").OpenWeb();
>
> //Get the folder
> SPFolder folder = web.Folders["Shared Documents"];
>
> folder.Files.Add("shared documents/folder1/abc.jpg", new
> FileStream("c:\abc.jpg"));
>
> //Get the file
> SPFile file = folder.Files["abc.jpg"];
>
> file.Title = "Invoice1"
>
> file("InvoiceDate") = DateTime.Now
>
> file.Update()
> ========================
>
> You may also take a look at a few products that I come across:
>
> http://sharepointsherpa.com/2008/04/02/sharepoint-2007-migrating-fileshare-files-into-document-libraries-using-migration-tool/
> http://www.vyapin.com/products/sharepoint/moss-2007/dockit/sharepoint-2007-file-migration.htm
> http://blogs.msdn.com/b/jro/archive/2007/08/29/moss-2007-and-sps-2003-sps-2001-migration-tools-public-release.aspx
>
> Have a nice day!
>
> // Ganesh //
>
>
> "Sharad2005" wrote:
>
>> Dear Experts
>>
>> I have a invoice scanning program which creates the image of the invoice and
>> extract the data like suppliername , amounts etc which is kept in same folder
>> in xml file
>>
>> we are creating invoice approval workflow for which we need the image and
>> the metadata do you know any solution which would import image and xml as
>> metadata
>>
>> the filename are same  for every image ( there is abc.tif and abc.xml for
>> the invoice abc )
>>
>> please guide
>>
>> best regards
>> Sharad
0
Reply Rob 5/28/2010 6:09:17 AM

Hi

You may find useful information about SharePoint resources in the following 
links: 
http://technet.microsoft.com
http://www.sharepointforum.com
http://sharepointchick.com
http://www.sharepointblogs.com
http://sharepointsolutions.blogspot.com/
http://blogs.sharepointlabs.com
http://www.wssdemo.com/
http://www.sharepointfeeds.com/

You may run the application on the SharePoint server or the client computer 
depending on the method you use to perform this action.

Ganesh 


"Rob Schneider" wrote:

> This is interesting.
> 
> 1.  Where/What is a good reference to read to learn how to do this sort 
> of programming?  (I've been relying on Access to munge SP data but want 
> to pursue this approach).
> 
> 2.  Where does this program that you wrote get put to run? file on PC 
> and run in command prompt?
> 
> 
> --rms
> 
> www.rmschneider.com
> 
> 
> 
> 
> On 27/05/10 22:51, Ganesh wrote:
> > Hi Sharad,
> >
> > I wasn't sure if you were looking to write your own program or identify an
> > out-of-the-box solution for importing images and metadata to SharePoint.
> >
> > As a SharePoint user, I used to write sample snippet to upload and assign
> > metadata to the documents in SharePoint using SharePoint object model. You
> > can see if it is useful to create a simple program to upload documents and
> > assign metadata.
> >
> > Here is sample code snippet:
> > ========================
> > //Open the web
> > SPWeb web = new SPSite("http://spsrv/sites").OpenWeb();
> >
> > //Get the folder
> > SPFolder folder = web.Folders["Shared Documents"];
> >
> > folder.Files.Add("shared documents/folder1/abc.jpg", new
> > FileStream("c:\abc.jpg"));
> >
> > //Get the file
> > SPFile file = folder.Files["abc.jpg"];
> >
> > file.Title = "Invoice1"
> >
> > file("InvoiceDate") = DateTime.Now
> >
> > file.Update()
> > ========================
> >
> > You may also take a look at a few products that I come across:
> >
> > http://sharepointsherpa.com/2008/04/02/sharepoint-2007-migrating-fileshare-files-into-document-libraries-using-migration-tool/
> > http://www.vyapin.com/products/sharepoint/moss-2007/dockit/sharepoint-2007-file-migration.htm
> > http://blogs.msdn.com/b/jro/archive/2007/08/29/moss-2007-and-sps-2003-sps-2001-migration-tools-public-release.aspx
> >
> > Have a nice day!
> >
> > // Ganesh //
> >
> >
> > "Sharad2005" wrote:
> >
> >> Dear Experts
> >>
> >> I have a invoice scanning program which creates the image of the invoice and
> >> extract the data like suppliername , amounts etc which is kept in same folder
> >> in xml file
> >>
> >> we are creating invoice approval workflow for which we need the image and
> >> the metadata do you know any solution which would import image and xml as
> >> metadata
> >>
> >> the filename are same  for every image ( there is abc.tif and abc.xml for
> >> the invoice abc )
> >>
> >> please guide
> >>
> >> best regards
> >> Sharad
> .
> 
0
Reply Utf 5/28/2010 2:29:01 PM

3 Replies
949 Views

(page loaded in 0.073 seconds)

Similiar Articles:
















7/24/2012 12:44:40 PM


Reply: