2008 Feb 27 1:44 AM
Hi,
I have a table in which I have a RAWSTRING field that contains uploaded binary files (scanned images).
I want to generate an ArchiveLink using this image to store it against a MIRO incoming invoice.
I know one way of doing this - saving the file to a directory on the application server and then using function module ARCHIVOBJECT_CREATE_SYNCHRON.
However, is there a cleaner way of doing this where I can pass the XSTRING directly to ArchiveLink without first having to create a file (which then requires writing clean up functions etc as well)?
Thanks!
Hi,
I have a table in which I have a RAWSTRING field that contains uploaded binary files (scanned images).
I want to generate an ArchiveLink using this image to store it against a MIRO incoming invoice.
I know one way of doing this - saving the file to a directory on the application server and then using function module ARCHIVOBJECT_CREATE_SYNCHRON.
However, is there a cleaner way of doing this where I can pass the XSTRING directly to ArchiveLink without first having to create a file (which then requires writing clean up functions etc as well)?
Thanks!
2008 Feb 27 3:15 AM
Hi,
I think there is no other way. You first need to write it to the file system (application server) and from there it will be written to Archive Directory.
You can just schedule a job to clean up the space once you have written it.
Regards,
Atish